Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec interface { // Encode // @Description: 编码指定消息 // @param msg 消息对象 // @return []byte 消息编码对象 // @return error // Encode(msg any) ([]byte, error) // Decode // @Description: 解码消息 // @param in 输入字节数据 // @return Msg 消息对象 // @return error // Decode(in []byte) (any, error) }
Codec
@Description: 消息内容解析器
Click to show internal directories.
Click to hide internal directories.