Versions in this module Expand all Collapse all v1 v1.0.0 Jun 24, 2021 Changes in this version + const Identity + func RegisterCodec(codec Codec) + func RegisterCompressor(c Compressor) + type Codec interface + Marshal func(v interface{}) ([]byte, error) + Name func() string + Unmarshal func(data []byte, v interface{}) error + func GetCodec(contentSubtype string) Codec + type Compressor interface + Compress func(w io.Writer) (io.WriteCloser, error) + Decompress func(r io.Reader) (io.Reader, error) + Name func() string + func GetCompressor(name string) Compressor