mirror of
https://github.com/ubf/ubf.git
synced 2026-04-28 07:37:04 +00:00
25 lines
897 B
Erlang
25 lines
897 B
Erlang
%%%----------------------------------------------------------------------
|
|
%%% Description: UBF Plugin Stateless Utilities
|
|
%%%----------------------------------------------------------------------
|
|
|
|
-ifndef(ubf_plugin_stateless).
|
|
-define(ubf_plugin_stateless, true).
|
|
|
|
%%%-------------------------------------------------------------------
|
|
%%% Specs/Types
|
|
%%%-------------------------------------------------------------------
|
|
|
|
%% common callback API
|
|
-spec info() -> string().
|
|
-spec description() -> string().
|
|
-spec handlerStop(Handler::pid(), Reason::term(), StateData::term()) ->
|
|
NewStateData::term().
|
|
|
|
%% stateless callback API
|
|
-spec handlerStart(Args::term()) ->
|
|
{accept, Reply::term(), StateName::atom(), StateDate::term()} |
|
|
{reject, Reply::term()}.
|
|
-spec handlerRpc(Call::term()) -> Reply::term().
|
|
|
|
-endif. % -ifndef(ubf_plugin_stateless)
|