Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ID0 []byte = nil
Functions ¶
This section is empty.
Types ¶
type JsonRpcMessage ¶
type JsonRpcMessage struct {
Version string `json:"jsonrpc,omitempty"`
ID json.RawMessage `json:"id,omitempty"`
Method string `json:"method,omitempty"`
Params json.RawMessage `json:"params,omitempty"`
Error *JsonrpcError `json:"error,omitempty"`
Result json.RawMessage `json:"result,omitempty"`
}
func NewJsonRpcMessage ¶
func NewJsonRpcMessage(id []byte) *JsonRpcMessage
func NewJsonRpcMessageWithError ¶
func NewJsonRpcMessageWithError(id []byte, code int, err string) *JsonRpcMessage
func ParseJsonRpcMessage ¶
func ParseJsonRpcMessage(data []byte) *JsonRpcMessage
type JsonrpcError ¶
Click to show internal directories.
Click to hide internal directories.