Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPCRequest ¶
type RPCRequest struct {
Method string `json:"method"`
Params interface{} `json:"params"`
ID int64 `json:"id"`
JSONRpc string `json:"jsonrpc"`
}
RPCRequest represent a RCP request
type RPCResponse ¶
type RPCResponse struct {
ID int64 `json:"id"`
Result json.RawMessage `json:"result"`
Err *RPCError `json:"error"`
}
RPCResponse represents response object.
type USTDCLient ¶
type USTDCLient struct {
// contains filtered or unexported fields
}
USTDCLient represents json-rpc client
func (*USTDCLient) Call ¶
func (c *USTDCLient) Call(method string, params ...interface{}) (RPCResponse, error)
Call does json-rpc call and returns result.
Click to show internal directories.
Click to hide internal directories.