View Source
PhxJsonRpc.Router.MetaData
(Phoenix JSON RPC v0.7.0)
MetaData struct for the paths, defined in rpc router.
Contains information about called controllers, actions and schema references for the given rpc method.
Summary
Type represents structure for the rpc metadata.
Creates the new metadata from the given params.
Types
@type t() :: %PhxJsonRpc.Router.MetaData{
action: nil | atom(),
controller: nil | module(),
schema_ref: nil | binary()
}
Type represents structure for the rpc metadata.
Functions
Creates the new metadata from the given params.
Examples
iex> PhxJsonRpc.Router.MetaData.new(controller: RpcController, action: :hello, schema_ref: "#/components/schema/hello")
%PhxJsonRpc.Router.MetaData{
controller: RpcController,
action: :hello,
schema_ref: "#/components/schema/hello"
}