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

Behaviour for the rpc requests dispatcher.

Summary

Callbacks

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

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.