// 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) }
// 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) }
// 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) }
// 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) }
// 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) }
// 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) }