client

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2020 License: AGPL-3.0-only Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL