Documentation ¶
Index ¶
- type Msg
- func (m Msg) IsEvent() bool
- func (m Msg) IsRaw() bool
- func (m Msg) PreprocessRaw() (raw []interface{}, pld interface{}, chID int64, msgType string, err error)
- func (m Msg) ProcessEvent() (i event.Info, err error)
- func (m Msg) ProcessPrivate(raw []interface{}, pld interface{}, chID int64, op string) (interface{}, error)
- func (m Msg) ProcessPublic(raw []interface{}, pld interface{}, chID int64, inf event.Info) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Msg ¶
func (Msg) PreprocessRaw ¶
func (m Msg) PreprocessRaw() (raw []interface{}, pld interface{}, chID int64, msgType string, err error)
PreprocessRaw takes raw slice of bytes and splits it into: 1. raw payload data - always last element of the slice 2. chanID - always 1st element of the slice 3. msg type - in 3 element msg slice, type is always at index 1
func (Msg) ProcessPrivate ¶
Click to show internal directories.
Click to hide internal directories.