Buzzword.Bingo.Engine.GameServer (Buzzword Bingo Engine v0.1.36)

View Source

A server process that holds a game struct as its state. Times out after 30 minutes of inactivity.

Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Spawns a game server process to be registered via a game name.

Allows to register or look up a game server process via game_name.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

init(init_arg)

Callback implementation for GenServer.init/1.

start_link(init_arg)

Spawns a game server process to be registered via a game name.

via(game_name)

@spec via(Buzzword.Bingo.Game.name()) :: {:via, Registry, tuple()}

Allows to register or look up a game server process via game_name.