Exemplo n.º 1
0
// Directory implements part of the Service interface.
func (w *webClient) Directory(ctx context.Context, req *ftpb.DirectoryRequest) (*ftpb.DirectoryReply, error) {
	var reply ftpb.DirectoryReply
	return &reply, web.Call(w.addr, "dir", req, &reply)
}
Exemplo n.º 2
0
// CorpusRoots implements part of the Service interface.
func (w *webClient) CorpusRoots(ctx context.Context, req *ftpb.CorpusRootsRequest) (*ftpb.CorpusRootsReply, error) {
	var reply ftpb.CorpusRootsReply
	return &reply, web.Call(w.addr, "corpusRoots", req, &reply)
}
Exemplo n.º 3
0
// Search implements the Service interface.
func (w *webClient) Search(ctx context.Context, q *spb.SearchRequest) (*spb.SearchReply, error) {
	var reply spb.SearchReply
	return &reply, web.Call(w.addr, "search", q, &reply)
}
Exemplo n.º 4
0
// Decorations implements part of the Service interface.
func (w *webClient) Decorations(ctx context.Context, q *xpb.DecorationsRequest) (*xpb.DecorationsReply, error) {
	var reply xpb.DecorationsReply
	return &reply, web.Call(w.addr, "decorations", q, &reply)
}
Exemplo n.º 5
0
// Edges implements part of the Service interface.
func (w *webClient) Edges(ctx context.Context, q *xpb.EdgesRequest) (*xpb.EdgesReply, error) {
	var reply xpb.EdgesReply
	return &reply, web.Call(w.addr, "edges", q, &reply)
}
Exemplo n.º 6
0
Arquivo: xrefs.go Projeto: baev/kythe
// CrossReferences implements part of the Service interface.
func (w *webClient) CrossReferences(ctx context.Context, q *xpb.CrossReferencesRequest) (*xpb.CrossReferencesReply, error) {
	var reply xpb.CrossReferencesReply
	return &reply, web.Call(w.addr, "xrefs", q, &reply)
}