Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Packer ¶
type Packer interface { Scheme() string // EnPacket 装包 EnPacket(p []byte) ([]byte, error) // UnPacket 拆包 UnPacket(p []byte) ([]byte, error) }
Packer 负责解包/拆包的实例要实现的接口 获得数据是经过json encode之后的Body,Header不会被发送到此处理 默认实现text&gzip
Click to show internal directories.
Click to hide internal directories.