Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BytesCompression ¶
type BytesCompression interface { Compress([]byte) ([]byte, error) Decompress([]byte) ([]byte, error) // String returns name of the algorithm. String() string }
BytesCompression is an interface of algorithm for compressing bytes.
func NewCompression ¶
func NewCompression(name string) BytesCompression
NewCompression returns nil if the given name is invalid.
Click to show internal directories.
Click to hide internal directories.