View Source PhxJsonRpc.Router.Dispatcher behaviour (Phoenix JSON RPC v0.5.0)

Behaviour for the rpc requests dispatcher.

Link to this section Summary

Callbacks

Dispatches the given rpc request, using module and action definitions in metadata.

Link to this section Callbacks

Link to this callback

dispatch(request, meta, context)

View Source
@callback dispatch(
  request :: PhxJsonRpc.Request.t(),
  meta :: nil | PhxJsonRpc.Router.MetaData.t(),
  context :: PhxJsonRpc.Router.Context.t()
) :: PhxJsonRpc.Response.t()

Dispatches the given rpc request, using module and action definitions in metadata.

If no metadata specified, falls to method not found response.