asobi_chat_channel (asobi v0.35.4)

View Source

Summary

Functions

get_history(ChannelId, Limit)

-spec get_history(binary(), pos_integer()) -> [map()].

handle_call(Request, From, State)

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

handle_cast(Msg, State)

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

handle_info(Info, State)

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

init(_)

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

join(ChannelId, Pid)

-spec join(binary(), pid()) -> ok.

leave(ChannelId, Pid)

-spec leave(binary(), pid()) -> ok.

send_message(ChannelId, SenderId, Content)

-spec send_message(binary(), binary(), binary()) -> ok.

start_link(ChannelId, ChannelType)

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

terminate(Reason, State)

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