Versions in this module Expand all Collapse all v0 v0.1.0 Sep 26, 2019 Changes in this version + type ContentDecoder interface + Decode func([]byte) ([]byte, error) + func NewContentDecoder(encoding string) (ContentDecoder, error) + type ContentEncoder interface + Encode func([]byte) ([]byte, error) + func NewContentEncoder(encoding string) (ContentEncoder, error) + type GzipDecoder struct + func NewGzipDecoder() (*GzipDecoder, error) + func (d *GzipDecoder) Decode(data []byte) ([]byte, error) + type GzipEncoder struct + func NewGzipEncoder() (*GzipEncoder, error) + func (e *GzipEncoder) Encode(data []byte) ([]byte, error) + func (e *GzipEncoder) SetLevel(lvl int) error + type IdentityDecoder struct + func NewIdentityDecoder() *IdentityDecoder + func (*IdentityDecoder) Decode(data []byte) ([]byte, error) + type IdentityEncoder struct + func NewIdentityEncoder() *IdentityEncoder + func (*IdentityEncoder) Encode(data []byte) ([]byte, error) + type SnappyEncoder struct + func NewSnappyDecoder() (*SnappyEncoder, error) + func NewSnappyEncoder() (*SnappyEncoder, error) + func (e *SnappyEncoder) Decode(data []byte) ([]byte, error) + func (e *SnappyEncoder) Encode(data []byte) ([]byte, error)