JSONRPC2Plug.Method behaviour (jsonrpc2_plug v0.1.0)
Link to this section Summary
Link to this section Types
Link to this type
result()
Specs
Link to this section Callbacks
Link to this callback
handle_call(arg1, t)
Specs
handle_call(map() | list(), Plug.Conn.t()) :: result()
Link to this callback
handle_cast(arg1, t)
Specs
handle_cast(map() | list(), Plug.Conn.t()) :: result()
Link to this callback
handle_error(map, {}, list)
Specs
handle_error(map(), {Exception.kind(), any()}, list()) :: {:jsonrpc2_error, any()}
Link to this callback
handle_exception(map, t, list)
Specs
handle_exception(map(), Exception.t(), list()) :: {:jsonrpc2_error, any()}
Link to this callback
validate(arg1)
Specs
Link to this section Functions
Link to this function
handle(arg, params, conn)
Specs
handle({module(), (... -> any())}, JSONRPC2Plug.Request.params(), Plug.Conn.t()) :: result()