logoot v1.0.1 Logoot.Agent
A GenServer which is responsible for storing a unique ID and the state of a
vector clock for use in generating Logoot.Sequence.position_ident
s.
iex> {:ok, agent} = Logoot.Agent.start_link
iex> Logoot.Agent.tick_clock(agent).clock
1
Summary
Functions
Get the current state of the agent (ID and clock)
Start an agent whose initial clock value will be 0
Increment the agent’s clock by 1
Types
Functions
Specs
start_link :: GenServer.on_start
Start an agent whose initial clock value will be 0.