restructure to be a littel more flexible
[lwes-erlang/github-mirror.git] / src / lwes_emitter.erl
blobaaef1fabab784a6a65c57e1f289b03740904ca3a
1 -module(lwes_emitter).
3 -callback new(Config :: term()) -> term().
4 -callback id(Config :: term()) ->
5 {Ip :: list() | tuple(), Port :: integer() } | atom().
6 -callback prep(Event :: term()) -> term().
7 -callback emit(Config :: term(), Event :: term()) -> ok | {error, atom()}.
8 -callback close(Config :: term()) -> ok.