Documentation ¶
Index ¶
Constants ¶
View Source
const JSONRPCDefaultPath = "/jsonrpc"
JSONRPCDefaultPath is the path of JSON-RPC.
View Source
const JSONRPCVersion = "2.0"
JSONRPCVersion is the version of JSON-RPC.
Variables ¶
View Source
var Version = "1.2.2"
Version is the current version of the jsonrpc package.
Functions ¶
This section is empty.
Types ¶
type Params ¶ added in v1.0.4
Params is a map of params.
type Request ¶ added in v1.2.0
type Request struct { JSONRPC string `json:"jsonrpc"` Method string `json:"method"` Params Params `json:"params"` ID string `json:"id"` }
Request is a JSON-RPC request.
type Response ¶ added in v1.2.0
type Response struct { JSONRPC string `json:"jsonrpc"` Result Result `json:"result"` Error *Error `json:"error"` ID string `json:"id"` }
Response is a JSON-RPC response.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.