Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterNodeClient ¶
type ClusterNodeClient struct { v1.ClusterClient HostAddrs []string DispHostAddr string // contains filtered or unexported fields }
func NewClusterNodeClient ¶
func NewClusterNodeClient(hostAddr string, connTimeout time.Duration) (*ClusterNodeClient, error)
func NewClusterNodeClientWithLB ¶
func NewClusterNodeClientWithLB(hostAddrs []string, connTimeout time.Duration, opts ...grpc.DialOption) (*ClusterNodeClient, error)
func (*ClusterNodeClient) Close ¶
func (c *ClusterNodeClient) Close() error
func (*ClusterNodeClient) IsNodeLeader ¶
func (c *ClusterNodeClient) IsNodeLeader() (bool, error)
func (*ClusterNodeClient) JoinCluster ¶
func (c *ClusterNodeClient) JoinCluster(nodeID, raftAddr string) error
func (*ClusterNodeClient) LeaveCluster ¶
func (c *ClusterNodeClient) LeaveCluster(nodeID string) error
Click to show internal directories.
Click to hide internal directories.