asobi_world_registry (asobi v0.35.4)

View Source

Summary

Functions

get_world(WorldId)

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

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()}.

init(_)

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

list_worlds()

-spec list_worlds() -> [map()].

register_world(WorldId, Meta)

-spec register_world(binary(), map()) -> ok.

start_link()

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

unregister_world(WorldId)

-spec unregister_world(binary()) -> ok.