Exemple #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)
}
Exemple #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)
}
Exemple #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)
}
Exemple #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)
}
Exemple #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)
}
Exemple #6
0
// 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)
}