Versions in this module Expand all Collapse all v1 v1.0.0 Mar 18, 2020 Changes in this version + type BYTESCodec struct + func (c *BYTESCodec) Decode(data []byte, v interface{}) error + func (c *BYTESCodec) Encode(v interface{}) ([]byte, error) + type BYTESCodecPool struct + func NewBYTESCodecPool(total int) *BYTESCodecPool + func (cp *BYTESCodecPool) Get() (c Codec) + func (cp *BYTESCodecPool) Put(c Codec) + type CODECodec struct + Buffer []byte + func (c *CODECodec) Decode(data []byte, v interface{}) error + func (c *CODECodec) Encode(v interface{}) ([]byte, error) + type CODECodecPool struct + func NewCODECodecPool(total int, width int) *CODECodecPool + func (cp *CODECodecPool) Get() (c Codec) + func (cp *CODECodecPool) Put(c Codec) + type Code interface + Marshal func(buf []byte) ([]byte, error) + Unmarshal func(buf []byte) (uint64, error) + type Codec interface + Decode func(data []byte, v interface{}) error + Encode func(v interface{}) ([]byte, error) + type GOBCodec struct + func (c *GOBCodec) Decode(data []byte, v interface{}) error + func (c *GOBCodec) Encode(v interface{}) ([]byte, error) + type GOBCodecPool struct + func NewGOBCodecPool(total int) *GOBCodecPool + func (cp *GOBCodecPool) Get() (c Codec) + func (cp *GOBCodecPool) Put(c Codec) + type GOGOPBCodec struct + Buffer []byte + func (c *GOGOPBCodec) Decode(data []byte, v interface{}) error + func (c *GOGOPBCodec) Encode(v interface{}) ([]byte, error) + type GOGOPBCodecPool struct + func NewGOGOPBCodecPool(total int, width int) *GOGOPBCodecPool + func (cp *GOGOPBCodecPool) Get() (c Codec) + func (cp *GOGOPBCodecPool) Put(c Codec) + type JSONCodec struct + func (c *JSONCodec) Decode(data []byte, v interface{}) error + func (c *JSONCodec) Encode(v interface{}) ([]byte, error) + type JSONCodecPool struct + func NewJSONCodecPool(total int) *JSONCodecPool + func (cp *JSONCodecPool) Get() (c Codec) + func (cp *JSONCodecPool) Put(c Codec) + type MSGPCodec struct + Buffer []byte + func (c *MSGPCodec) Decode(data []byte, v interface{}) error + func (c *MSGPCodec) Encode(v interface{}) ([]byte, error) + type MSGPCodecPool struct + func NewMSGPCodecPool(total int, width int) *MSGPCodecPool + func (cp *MSGPCodecPool) Get() (c Codec) + func (cp *MSGPCodecPool) Put(c Codec) + type PBCodec struct + func (c *PBCodec) Decode(data []byte, v interface{}) error + func (c *PBCodec) Encode(v interface{}) ([]byte, error) + type PBCodecPool struct + func NewPBCodecPool(total int) *PBCodecPool + func (cp *PBCodecPool) Get() (c Codec) + func (cp *PBCodecPool) Put(c Codec) + type Pool interface + Get func() Codec + Put func(c Codec) + type XMLCodec struct + func (c *XMLCodec) Decode(data []byte, v interface{}) error + func (c *XMLCodec) Encode(v interface{}) ([]byte, error) + type XMLCodecPool struct + func NewXMLCodecPool(total int) *XMLCodecPool + func (cp *XMLCodecPool) Get() (c Codec) + func (cp *XMLCodecPool) Put(c Codec)