Documentation ¶
Index ¶
- func GetMessage(call func(ev *Message))
- type Id
- type Message
- func (v *Message) Body(b []byte)
- func (v *Message) Decode(in interface{}) error
- func (v *Message) Encode(in interface{})
- func (v *Message) EncodeEvent(id Id, in interface{})
- func (v *Message) Error(e error)
- func (v *Message) EventID() Id
- func (v Message) MarshalEasyJSON(w *jwriter.Writer)
- func (v Message) MarshalJSON() ([]byte, error)
- func (v *Message) Reset() *Message
- func (v *Message) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Message) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMessage ¶
func GetMessage(call func(ev *Message))
Types ¶
type Message ¶
type Message struct { ID Id `json:"e"` Data json.RawMessage `json:"d"` Err *string `json:"err,omitempty"` }
func (*Message) EncodeEvent ¶
func (Message) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Message) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Message) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Message) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.