Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonRpcError ¶
type JsonRpcError struct {
Code int `json:"code"`
Message string `json:"message"`
Data any `json:"data,omitempty"`
}
JsonRpcError represents a JSON-RPC error-info.
type JsonRpcRequest ¶
type JsonRpcRequest struct {
Jsonrpc string `json:"jsonrpc"`
Method string `json:"method"`
Params []any `json:"params"`
ID int `json:"id"`
}
JsonRpcRequest represents a JSON-RPC request.
type JsonRpcResponse ¶
type JsonRpcResponse[RES any] struct { Jsonrpc string `json:"jsonrpc"` ID int `json:"id"` Result RES `json:"result"` Error *JsonRpcError `json:"error,omitempty"` }
JsonRpcResponse represents a JSON-RPC response.
Click to show internal directories.
Click to hide internal directories.