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"` }
func (*ErrorObject) Error ¶
func (e *ErrorObject) Error() string
type Request ¶
type Request struct { Version string `json:"jsonrpc"` ID uint64 `json:"id"` Method string `json:"method"` Params json.RawMessage `json:"params"` }
type Response ¶
type Response struct { ID uint64 `json:"id"` Result json.RawMessage `json:"result"` Error *ErrorObject `json:"error,omitempty"` }
type Subscription ¶
type Subscription struct { ID string `json:"subscription"` Result json.RawMessage `json:"result"` }
Click to show internal directories.
Click to hide internal directories.