Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONRPC ¶
type JSONRPC struct {
// contains filtered or unexported fields
}
JSONRPC ...
func (*JSONRPC) NewRequest ¶
NewRequest ...
type JSONRPCError ¶
JSONRPCError ...
func (*JSONRPCError) Error ¶
func (err *JSONRPCError) Error() string
type JSONRPCRequest ¶
type JSONRPCRequest struct { Version string `json:"jsonrpc,omitempty"` Method string `json:"method"` Params []interface{} `json:"params"` Identifier uint64 `json:"id"` }
JSONRPCRequest ...
type JSONRPCResponse ¶
type JSONRPCResponse struct { Version string `json:"jsonrpc"` Identifier uint64 `json:"id"` Result interface{} `json:"result"` Err *JSONRPCError `json:"error,omitempty"` }
JSONRPCResponse ...
func (*JSONRPCResponse) Error ¶
func (resp *JSONRPCResponse) Error() error
type RPC ¶
type RPC interface { Name() string NewRequest(method string, args ...interface{}) Request NewResponse(data []byte) Response }
RPC defines basic methods of variety RPCs
Click to show internal directories.
Click to hide internal directories.