Kalevala.Character.Presence behaviour (kalevala v0.1.0) View Source

Track the presence of online characters

Link to this section Summary

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)

Callbacks

Notify the callback module that a character is offline

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)

Link to this section Callbacks

Specs

offline(Character.t()) :: :ok

Notify the callback module that a character is offline

Specs

online(Character.t()) :: :ok

Notify the callback module that a character is online