View Source Kalevala.Character.Presence behaviour (kalevala v0.1.0)
Track the presence of online characters
Link to this section Summary
Callbacks
Notify the callback module that a character is offline
Notify the callback module that a character is online
Functions
Load all online characters
Returns a specification to start this module under a supervisor.
Callback implementation for GenServer.init/1
.
Start tracking a character (and it's foreman process)
Link to this section Callbacks
@callback offline(Character.t()) :: :ok
Notify the callback module that a character is offline
@callback online(Character.t()) :: :ok
Notify the callback module that a character is online
Link to this section Functions
Load all online characters
Returns a specification to start this module under a supervisor.
See Supervisor
.
Callback implementation for GenServer.init/1
.
Start tracking a character (and it's foreman process)