Documentation ¶
Index ¶
Constants ¶
View Source
const ( MAX_JSONRPC_ID = 0x7FFFFFFF VERSION = "2.0" )
Variables ¶
View Source
var (
Version = "2.0"
)
Functions ¶
Types ¶
type Error ¶
type Error struct { Code int `json:"code"` Message string `json:"message"` Data interface{} `json:"data,omitempty"` }
Error represent JSON-RPC 2.0 "Error object".
func ServerError ¶
ServerError convert errors returned by Client.Call() into Error. User should check for rpc.ErrShutdown and io.ErrUnexpectedEOF before calling ServerError.
Click to show internal directories.
Click to hide internal directories.