Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorObject ¶
type ErrorObject struct { Code int `json:"code"` Message string `json:"message"` Data interface{} `json:"data,omitempty"` }
ErrorObject is a jsonrpc error
type Request ¶
type Request struct { JsonRPC string `json:"jsonrpc"` ID uint64 `json:"id"` Method string `json:"method"` Params json.RawMessage `json:"params"` }
Request is a jsonrpc request
type Response ¶
type Response struct { ID uint64 `json:"id"` Result json.RawMessage `json:"result"` Error *ErrorObject `json:"error,omitempty"` }
Response is a jsonrpc response
type Subscription ¶
type Subscription struct { ID string `json:"subscription"` Result json.RawMessage `json:"result"` }
Subscription is a jsonrpc subscription
Click to show internal directories.
Click to hide internal directories.