Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONRequest ¶
type JSONRequest struct {
Method string `json:"method"`
Params []string `json:"params,omitempty"`
Id int `json:"id"`
}
JSONRequest defines a JSON-RPC request.
type JSONResponse ¶
type JSONResponse struct {
Result *json.RawMessage `json:"result"`
Error string `json:"error"`
Id int `json:"id"`
}
JSONResponse defines a JSON-RPC response to a method call.
Click to show internal directories.
Click to hide internal directories.