squabble v0.1.0 Squabble.Leader behaviour View Source

Behaviour for modules that care about leader functions

Link to this section Summary

Callbacks

The local node was selected as a leader

A node went down, callback from the squabble leader

Link to this section Types

Link to this type election_term() View Source
election_term() :: integer()

Link to this section Callbacks

Link to this callback leader_selected(election_term) View Source
leader_selected(election_term()) :: :ok

The local node was selected as a leader

Link to this callback node_down() View Source
node_down() :: :ok

A node went down, callback from the squabble leader