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

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

@callback dispatch(
  request :: PhxJsonRpc.Request.t(),
  meta :: nil | PhxJsonRpc.Router.MetaData.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.