SourceBackendClient is the client API for SourceBackend service. For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
| 18 | // |
| 19 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. |
| 20 | type SourceBackendClient interface { |
| 21 | // File reads the file and returns its contents. |
| 22 | File(ctx context.Context, in *FileRequest, opts ...grpc.CallOption) (*FileReply, error) |
| 23 | // Search performs the given query and streams matches/progress updates. |
| 24 | Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (SourceBackend_SearchClient, error) |
| 25 | // Replaces the loaded index with the specified replacement index. On a file |
| 26 | // system level, the specified file is mv'ed to the file specified by |
| 27 | // -index_path. |
| 28 | ReplaceIndex(ctx context.Context, in *ReplaceIndexRequest, opts ...grpc.CallOption) (*ReplaceIndexReply, error) |
| 29 | } |
| 30 | |
| 31 | type sourceBackendClient struct { |
| 32 | cc grpc.ClientConnInterface |
no outgoing calls
no test coverage detected