MCPcopy Create free account
hub / github.com/dadgar/onecache / Join

Method Join

onecache/onecache.go:218–221  ·  view source on GitHub ↗

Join adds this Node to an existing set ring. Nodes is a list of ip:port port pairs or DNS addresses.

(nodes []string)

Source from the content-addressed store, hash-verified

216// Join adds this Node to an existing set ring. Nodes is a list of ip:port port pairs
217// or DNS addresses.
218func (n *Node) Join(nodes []string) error {
219 _, err := n.serf.Join(nodes, true)
220 return err
221}
222
223func (n *Node) handleNodeJoins(members []serf.Member) {
224 n.memberStateUpdates(members, false)

Callers 4

mainFunction · 0.80
TestJoinInvalidFunction · 0.80
TestJoinValidFunction · 0.80
buildConnectedNodesFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestJoinInvalidFunction · 0.64
TestJoinValidFunction · 0.64