nova_session behaviour (nova v0.9.3) View Source
Link to this section Summary
Link to this section Callbacks
Specs
delete_value(SessionId) -> ok | {error, Reason :: atom()} when SessionId :: binary().
Specs
delete_value(SessionId, Key) -> ok | {error, Reason :: atom()} when SessionId :: binary(), Key :: binary().
Specs
get_value(SessionId, Key) -> {ok, Value :: any()} | {error, Reason :: atom()} when SessionId :: binary(), Key :: binary().
Specs
set_value(SessionId, Key, Value) -> ok | {error, Reason :: atom()} when SessionId :: binary(), Key :: binary(), Value :: binary().
Link to this section Functions
Specs
delete(Req :: cowboy_req:req()) -> {ok, Req :: cowboy_req:req()} | {error, Reason :: atom()}.
Specs
delete(Req :: cowboy_req:req(), Key :: binary()) -> {ok, Req :: cowboy_req:req()} | {error, Reason :: atom()} | no_return().
Specs
get(Req :: cowboy_req:req(), Key :: binary()) -> {ok, Value :: binary()} | {error, Reason :: atom()} | no_return().
Specs
set(Req :: cowboy_req:req(), Key :: binary(), Value :: binary()) -> ok | {error, Reason :: atom()} | no_return().