View Source PhxJsonRpc.Types (PhxJsonRpc v0.1.0)
Type definitions for the rpc requests, responses and errors.
Link to this section Summary
Types
Type represents possible rpc errors.
Type represents rpc request ID. Whether it's nil, string or number.
Type represents called rpc request method in the form of string.
Type represents rpc request parameters. In terms of elixir, it's a list or a map.
Type represents rpc response.
Link to this section Types
@type rpc_error() :: nil | PhxJsonRpc.Error.InternalError.t() | PhxJsonRpc.Error.InvalidParams.t() | PhxJsonRpc.Error.InvalidRequest.t() | PhxJsonRpc.Error.MethodNotFound.t() | PhxJsonRpc.Error.ParseError.t() | PhxJsonRpc.Error.ServerError.t()
Type represents possible rpc errors.
Type represents rpc request ID. Whether it's nil, string or number.
@type rpc_request_method() :: String.t()
Type represents called rpc request method in the form of string.
@type rpc_request_params() :: List.t() | map()
Type represents rpc request parameters. In terms of elixir, it's a list or a map.
@type rpc_response() :: any()
Type represents rpc response.