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 represents possible rpc errors.

@type rpc_request_id() :: nil | binary() | number()

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.