Versions in this module Expand all Collapse all v0 v0.1.0 Apr 17, 2025 v0.0.2 Mar 27, 2025 Changes in this version + var ErrDecompressedMsgTooLarge = errors.New("decompressed msg too large") + var ErrInvalidMaxSizeCompressor = errors.New("invalid gzip compressor max size") + var ErrMsgTooLarge = errors.New("msg too large to be compressed") + type Compressor interface + Compress func([]byte) ([]byte, error) + Decompress func([]byte) ([]byte, error) + func NewGzipCompressor(maxSize int64) (Compressor, error) + func NewNoCompressor() Compressor + func NewZstdCompressor(maxSize int64) (Compressor, error) + type Type byte + const TypeNone + const TypeZstd + func TypeFromString(s string) (Type, error) + func (t Type) MarshalJSON() ([]byte, error) + func (t Type) String() string