Documentation
¶
Index ¶
Constants ¶
View Source
const ( CodeParseError = -32700 CodeInvalidRequest = -32600 CodeMethodNotFound = -32601 CodeInvalidParams = -32602 CodeInternalError = -32603 CodeServerError = -32000 // -32000 to -32099 Server error, Reserved for implementation-defined server-errors. )
View Source
const ( MIMEApplicationJSON = "application/json" MIMEApplicationJSONCharsetUTF8 = "application/json; charset=utf-8" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Err ¶
type Req ¶
type Req struct { Version string `json:"jsonrpc"` ID json.RawMessage `json:"id,omitempty"` Method string `json:"method"` Params json.RawMessage `json:"params,omitempty"` }
func (*Req) DecodeParams ¶
func (*Req) InvalidMethod ¶
func (*Req) InvalidParams ¶
type Res ¶
type Res struct { Version string `json:"jsonrpc"` ID json.RawMessage `json:"id"` Error *Err `json:"error,omitempty"` Result json.RawMessage `json:"result,omitempty"` }
func (*Res) DecodeResult ¶
Click to show internal directories.
Click to hide internal directories.