Versions in this module Expand all Collapse all v0 v0.2.1 Jul 31, 2018 v0.2.0 Jul 31, 2018 Changes in this version + const HeadLength + const MaxPacketSize + var ErrPacketSizeExcced = errors.New("codec: packet size exceed") + type PacketDecoder interface + Decode func(data []byte) ([]*packet.Packet, error) + type PacketEncoder interface + Encode func(typ packet.Type, data []byte) ([]byte, error) + type PomeloPacketDecoder struct + func NewPomeloPacketDecoder() *PomeloPacketDecoder + func (c *PomeloPacketDecoder) Decode(data []byte) ([]*packet.Packet, error) + type PomeloPacketEncoder struct + func NewPomeloPacketEncoder() *PomeloPacketEncoder + func (e *PomeloPacketEncoder) Encode(typ packet.Type, data []byte) ([]byte, error)