Documentation ¶
Index ¶
Constants ¶
View Source
const ( CodeParseError = -32700 CodeInvalidRequest = -32600 CodeMethodNotFound = -32601 CodeInvalidParams = -32602 CodeInternalError = -32603 CodeServerErrorRangeStart = -32099 CodeServerErrorRangeEnd = -32000 )
View Source
const JSONRPCVersion = "2.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Name string `json:"name"` Cause ErrorCause `json:"cause"` // Legacy - do not rely on them Code int `json:"code"` Message string `json:"message"` Data json.RawMessage `json:"data"` }
type ErrorCause ¶
type ErrorCause struct { Name string `json:"name"` Info json.RawMessage `json:"info"` // contains filtered or unexported fields }
func (ErrorCause) String ¶
func (cause ErrorCause) String() string
func (*ErrorCause) UnmarshalJSON ¶
func (cause *ErrorCause) UnmarshalJSON(b []byte) (err error)
type ErrorCauseMessage ¶
type ErrorCauseMessage struct {
ErrorMessage string `json:"error_message"`
}
Click to show internal directories.
Click to hide internal directories.