Documentation ¶ Index ¶ Variables type Codec func NewDefaultCodec() Codec Constants ¶ This section is empty. Variables ¶ View Source var ( ErrorMustBePointer = errors.New("value must be a pointer") ErrorWrongRequestType = errors.New("value must be a string/[]byte/struct") ErrorWrongResponseType = errors.New("value must be a pointer of string/[]byte/struct") ) Functions ¶ This section is empty. Types ¶ type Codec ¶ type Codec interface { Encode(v interface{}) (msg []byte, err error) Decode(msg []byte, r interface{}) (err error) } func NewDefaultCodec ¶ func NewDefaultCodec() Codec Source Files ¶ View all Source files codec.go Click to show internal directories. Click to hide internal directories.