Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Host string Username string Password string HTTPTransport http.RoundTripper // contains filtered or unexported fields }
Client represents a client for interaction with a JSON RPC API
type Request ¶
type Request struct { BaseURL string `json:"-"` Method string `json:"method"` Params interface{} `json:"params"` }
Request represents a request to a JSON RPC API
type Response ¶
type Response struct { Result *json.RawMessage `json:"result"` Error *ResponseError `json:"error"` }
Response represents a Response to a JSON RPC API call
type ResponseError ¶
type ResponseError struct { Code int `json:"code"` Message string `json:"message"` Name string `json:"name"` }
func (*ResponseError) Error ¶
func (e *ResponseError) Error() string
Click to show internal directories.
Click to hide internal directories.