MCPcopy
hub / github.com/weaviate/weaviate / switchReplicationClient

Struct switchReplicationClient

adapters/clients/replication_mixed.go:32–36  ·  view source on GitHub ↗

switchReplicationClient routes all replication calls to either gRPC or REST based on the useGRPC function, controlled by the replication_grpc_enabled runtime config.

Source from the content-addressed store, hash-verified

30// switchReplicationClient routes all replication calls to either gRPC or REST
31// based on the useGRPC function, controlled by the replication_grpc_enabled runtime config.
32type switchReplicationClient struct {
33 grpcClient *grpcReplicationClient
34 restClient *replicationClient
35 useGRPC func() bool
36}
37
38var _ (replica.Client) = (*switchReplicationClient)(nil)
39

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected