asobi_tournament_server (asobi v0.35.4)

View Source

Summary

Functions

get_info(TournamentId)

-spec get_info(binary()) -> {ok, map()} | {error, not_found}.

handle_call(Request, From, State)

-spec handle_call(term(), gen_server:from(), map()) -> {reply, term(), map()}.

handle_cast(Msg, State)

-spec handle_cast(term(), map()) -> {noreply, map()}.

handle_info(Info, State)

-spec handle_info(term(), map()) -> {noreply, map()} | {stop, normal, map()}.

init(Tournament)

-spec init(map()) -> {ok, map()}.

join(TournamentId, PlayerId)

-spec join(binary(), binary()) -> ok | {error, term()}.

start_link(Tournament)

-spec start_link(map()) -> gen_server:start_ret().

terminate(Reason, State)

-spec terminate(term(), map()) -> ok.