Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONSerializer ¶
type JSONSerializer struct{}
JSONSerializer JSON序列化器
func (*JSONSerializer) ContentType ¶
func (s *JSONSerializer) ContentType() string
func (*JSONSerializer) Deserialize ¶
func (s *JSONSerializer) Deserialize(data []byte, msg *message.Message) error
type MsgPackSerializer ¶
type MsgPackSerializer struct{}
MsgPackSerializer MessagePack序列化器(更高效)
func (*MsgPackSerializer) ContentType ¶
func (s *MsgPackSerializer) ContentType() string
func (*MsgPackSerializer) Deserialize ¶
func (s *MsgPackSerializer) Deserialize(data []byte, msg *message.Message) error
Click to show internal directories.
Click to hide internal directories.