Categorygithub.com/gromson/jsonrpc
modulepackage
0.2.1
Repository: https://github.com/gromson/jsonrpc.git
Documentation: pkg.go.dev

# Functions

NewError creates new RPC error.
NewErrResponse creates JSON-RPC response.
NewFromError creates new RPC error from a regular error.
NewMethodNotFoundError creates an RPC error for non existing method, first argument is a name of a method, the second argument is a wrapped error.
NewNamespace creates namespace.
NewNsNotFoundError creates an RPC error for non existing namespace, first argument is a name of a namespace, the second argument is a wrapped error.
NewParamMissingError creates an RPC error describing missing parameter in the RPC response.
NewRpc creates new rpc service.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrorInvalidParams states that parameters in the JSON-RPC request are invalid.

# Structs

Request represents JSON-RPC request.
Response represents JSON-RPC response.
ResponseError represents JSON-RPC response error.
Rpc RPC service handling a JSON-RPC request.

# Interfaces

RpcError interface representing an rpc error.
Namespace interface representing a namespace.

# Type aliases

Callback implementation of the RPC method.
No description provided by the author