MCPcopy Create free account
hub / github.com/Debian/dcs / SourceBackendClient

Interface SourceBackendClient

internal/proto/sourcebackendpb/sourcebackend_grpc.pb.go:20–29  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
20type 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
31type sourceBackendClient struct {
32 cc grpc.ClientConnInterface

Callers 6

ShowFunction · 0.65
searchFunction · 0.95
mergeToShardFunction · 0.95

Implementers 3

Serverinternal/sourcebackend/sourcebackend.g
sourceBackendClientinternal/proto/sourcebackendpb/sourceb
UnimplementedSourceBackendServerinternal/proto/sourcebackendpb/sourceb

Calls

no outgoing calls

Tested by

no test coverage detected