This module defines the lasse_handler behaviour.
Required callback functions: init/3, handle_notify/2, handle_info/2, handle_error/3, terminate/3.
event() = #{id => binary(), event => binary(), data => binary(), retry => binary(), comment | '' => binary()}
lasse_handler_options() = [module()] | #{module => module(), init_args => any()}
result() = {send, Event::event(), NewState::any()} | {nosend, NewState::any()} | {stop, NewState::any()}
state() = #state{module = module(), state = any()}
info/3 | |
init/3 | |
notify/2 | |
terminate/3 |
info(Msg::term(), Req::cowboy_req:req(), State::state()) -> {ok | loop, cowboy_req:req(), state()}
init(Transport::any(), Req::cowboy_req:req(), Opts::lasse_handler_options()) -> {loop, cowboy_req:req(), state()}
notify(Pid::atom() | pid(), Msg::term()) -> ok
terminate(Reason::term(), Req::cowboy_req:req(), State::state()) -> ok
Generated by EDoc, Jun 14 2017, 13:40:58.