Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrResponse ¶
type ErrResponse struct {
Message string `json:"message"`
Code string `json:"code"`
Description string `json:"description"`
}
func (ErrResponse) MarshalEasyJSON ¶
func (v ErrResponse) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ErrResponse) MarshalJSON ¶
func (v ErrResponse) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ErrResponse) UnmarshalEasyJSON ¶
func (v *ErrResponse) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ErrResponse) UnmarshalJSON ¶
func (v *ErrResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Meta ¶
type Meta struct {
RequestID string `json:"request_id"`
TraceID string `json:"trace_id"`
From string `json:"from"`
}
func (Meta) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Meta) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Meta) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Meta) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Request ¶
type Request struct {
Data json.RawMessage `json:"data"`
Meta Meta `json:"meta"`
}
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 Response ¶
type Response struct {
Success bool `json:"success"`
Meta Meta `json:"meta"`
Data json.RawMessage `json:"data,omitempty"`
Error *ErrResponse `json:"error,omitempty"`
}
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