Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶
type Algorithm interface { Compress(value []byte) ([]byte, error) Decompress(value []byte) ([]byte, error) Accept(alg string) bool Close() error }
Algorithm defines compression/decompression algorithm functionality
type Option ¶
type Option func(opts *Registry)
Option is a registry instance option
func WithAlgorithm ¶
WithAlgorithm adds compression algorithm to the list of available algorithms
func WithDefaultAlgorithms ¶
func WithDefaultAlgorithms() Option
WithDefaultAlgorithms adds default compression algorithms to the list of available algorithms
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry contains compression algorithms
Click to show internal directories.
Click to hide internal directories.