MCPcopy
hub / github.com/olric-data/olric / ClusterClient

Struct ClusterClient

cluster_client.go:492–501  ·  view source on GitHub ↗

ClusterClient is a client for managing and interacting with a distributed cluster of nodes.

Source from the content-addressed store, hash-verified

490
491// ClusterClient is a client for managing and interacting with a distributed cluster of nodes.
492type ClusterClient struct {
493 client *server.Client
494 config *clusterClientConfig
495 logger *log.Logger
496 routingTable atomic.Value
497 partitionCount uint64
498 wg sync.WaitGroup
499 ctx context.Context
500 cancel context.CancelFunc
501}
502
503// Ping sends a ping message to an Olric node. Returns PONG if a message is empty,
504// otherwise return a copy of the message as bulk. This command is often used to test

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected