Documentation ¶
Index ¶
- type Buffer
- type Decoder
- type Encoder
- type MsgHandler
- type MsgInfo
- type MsgRaw
- type Processor
- func (p *Processor) GetMsgId(msg interface{}) (string, error)
- func (p *Processor) Marshal(msg interface{}) ([][]byte, error)
- func (p *Processor) Register(msg interface{}) string
- func (p *Processor) Route(msg interface{}, userData interface{}) error
- func (p *Processor) SetHandler(msg interface{}, msgHandler MsgHandler)
- func (p *Processor) SetRawHandler(msg interface{}, msgRawHandler MsgHandler)
- func (p *Processor) SetRouter(msg interface{}, msgRouter *chanrpc.Server)
- func (p *Processor) Unmarshal(data []byte) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func NewDecoder() *Decoder
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder() *Encoder
type MsgHandler ¶
type MsgHandler func([]interface{})
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶
func NewProcessor() *Processor
func (*Processor) Register ¶
It's dangerous to call the method on routing or marshaling (unmarshaling)
func (*Processor) SetHandler ¶
func (p *Processor) SetHandler(msg interface{}, msgHandler MsgHandler)
It's dangerous to call the method on routing or marshaling (unmarshaling)
func (*Processor) SetRawHandler ¶
func (p *Processor) SetRawHandler(msg interface{}, msgRawHandler MsgHandler)
It's dangerous to call the method on routing or marshaling (unmarshaling)
Click to show internal directories.
Click to hide internal directories.