Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchFullResponse ¶
type BatchFullResponse []Response
BatchFullResponse is type for batch response
func (BatchFullResponse) MarshalEasyJSON ¶
func (v BatchFullResponse) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (BatchFullResponse) MarshalJSON ¶
func (v BatchFullResponse) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*BatchFullResponse) UnmarshalEasyJSON ¶
func (v *BatchFullResponse) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*BatchFullResponse) UnmarshalJSON ¶
func (v *BatchFullResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Error ¶
type Error struct { Code int `json:"code"` Message string `json:"message"` Data interface{} `json:"data,omitempty"` }
Error struct for JSONRPC2 error @see https://www.jsonrpc.org/specification#error_object
func (Error) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Error) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Error) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Error) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Request ¶
type Request struct { Version string `json:"jsonrpc"` Method string `json:"method"` Params json.RawMessage `json:"params"` ID interface{} `json:"id"` }
Request impementation of jsonrpc request @see https://www.jsonrpc.org/specification#request_object
func (Request) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Request) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Request) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Request) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Requests ¶
type Requests []Request
Requests for batch request
func (Requests) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Requests) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Requests) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Requests) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Response ¶
type Response struct { Version string `json:"jsonrpc"` Result *json.RawMessage `json:"result,omitempty"` Error *Error `json:"error,omitempty"` ID interface{} `json:"id"` }
Response struct for full jsonrpc response @see https://www.jsonrpc.org/specification#response_object
func (Response) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Response) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Response) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Response) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface