cloister v0.1.2 Cloister View Source

Cloister is a consensus helper for clusters.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Returns true if the hashring points to this node for the term given, false otherwise

Returns who would be chosen by a hash ring for the term

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

mine?(term)

View Source
mine?(term :: any()) :: boolean() | {:error, :no_such_ring}

Returns true if the hashring points to this node for the term given, false otherwise

Link to this function

multicast(name, request)

View Source

See Cloister.Node.multicast/2.

See Cloister.Node.siblings/0.

See Cloister.Node.state/0.

Link to this function

whois(term)

View Source
whois(term :: any()) :: node() | {:error, :no_such_ring}

Returns who would be chosen by a hash ring for the term