Versions in this module Expand all Collapse all v0 v0.6.9 Jan 10, 2019 Changes in this version + type Codec struct + Charset string + Name string + Options map[string]interface{} + Role string + func New(name string, conf map[string]interface{}, logger commons.Logger, cwl string) *Codec + func (c *Codec) NewDecoder(r io.Reader) (Decoder, error) + func (c *Codec) NewEncoder(w io.Writer) (Encoder, error) + func (c *Codec) String() string + type CodecCollection struct + Dec *Codec + Default *Codec + Enc *Codec + func (c *CodecCollection) NewDecoder(r io.Reader) (Decoder, error) + func (c *CodecCollection) NewEncoder(w io.Writer) (Encoder, error) + type Decoder interface + Buffer func() []byte + Decode func(*interface{}) error + More func() bool + SetOptions func(map[string]interface{}, commons.Logger, string) error + type Encoder interface + Encode func(map[string]interface{}) error + SetOptions func(map[string]interface{}, commons.Logger, string) error