View Source PhxJsonRpc.Request (Phoenix JSON RPC v0.6.0)
Basic struct for the rpc request.
Summary
Functions
Creates the new rpc request from the given params.
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.
Functions
Creates the new rpc request from the given params.
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
}