View Source partisan_scamp_v2_membership_strategy (partisan v5.0.0-beta.14)

Link to this section Summary

Functions

Handling incoming protocol message.
Initialize the strategy state. Start with an empty state with only ourselves known.
When a remote node is connected, notify that node to add us. Then, perform forwarding, if necessary.
Leave a node from the cluster.
Periodic protocol maintenance.

Link to this section Functions

Link to this function

handle_message(Scamp_v2, _)

View Source
Handling incoming protocol message.
Initialize the strategy state. Start with an empty state with only ourselves known.
Link to this function

join(Scamp_v2, Node, NodeState)

View Source
When a remote node is connected, notify that node to add us. Then, perform forwarding, if necessary.
Leave a node from the cluster.
Periodic protocol maintenance.