Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidRequest error = errors.New("invalid request")
)
Functions ¶
Types ¶
type ErrResponse ¶ added in v1.0.1
type ErrResponse struct {
Id *json.RawMessage `json:"id"`
JsonRPC string `json:"jsonrpc"`
Error interface{} `json:"error"`
}
type Request ¶
type Request struct {
Method string `json:"method"`
JsonRPC string `json:"jsonrpc"`
Params *json.RawMessage `json:"params"`
Id *json.RawMessage `json:"id"`
}
type Response ¶
type Response struct {
Id *json.RawMessage `json:"id"`
JsonRPC string `json:"jsonrpc"`
Result interface{} `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.