exnowflake v0.1.0 Exnowflake.Registry View Source

A Redis backed GenServer that exposes API for getting cluster machines registry.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Returns all locally registered workers sorted by time.

Returns all Redis registered workers sorted by time.

Returns the current node worker number.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

local_registry()

View Source
local_registry() :: keyword()

Returns all locally registered workers sorted by time.

Link to this function

redis_registry()

View Source
redis_registry() :: [{atom(), integer()}] | []

Returns all Redis registered workers sorted by time.

Link to this function

worker_id()

View Source
worker_id() :: integer() | nil

Returns the current node worker number.