View Source PhxJsonRpc.Request (Phoenix JSON RPC v0.3.6)
Basic struct for the rpc request.
Link to this section Summary
Functions
Creates the new rpc request from the given params.
Link to this section Types
@type t() :: %PhxJsonRpc.Request{ error: PhxJsonRpc.Types.rpc_error(), id: PhxJsonRpc.Types.rpc_request_id(), method: PhxJsonRpc.Types.rpc_request_method(), params: PhxJsonRpc.Types.rpc_request_params(), valid?: boolean(), version: PhxJsonRpc.Types.jsonrpc_version() }
Type represents structure for the rpc request.
Link to this section Functions
Creates the new rpc request from the given params.
examples
Examples
iex> PhxJsonRpc.Request.new(version: "2.0", method: "hello", params: %{"name" => "John"}, id: "[REQUEST-UUID]")
%PhxJsonRpc.Request{
version: "2.0",
method: "hello",
params: %{"name" => "John"},
id: "[REQUEST-UUID]",
valid?: nil,
error: nil
}