Documentation ¶
Overview ¶
Package cluster supports intracluster control messaging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrJoinFailed is returned when a node fails to join a cluster ErrJoinFailed = errors.New("failed to join cluster") )
Functions ¶
func Join ¶
func Join(srcIP string, joinAddr []string, id, addr string, voter bool, meta map[string]string, numAttempts int, attemptInterval time.Duration, tlsConfig *tls.Config) (string, error)
Join attempts to join the cluster at one of the addresses given in joinAddr. It walks through joinAddr in order, and sets the node ID and Raft address of the joining node as id addr respectively. It returns the endpoint successfully used to join the cluster.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.