Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Module for fx.
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Compressor interface { // Compress data. Compress(data []byte) []byte // Decompress data. Decompress(data []byte) ([]byte, error) }
Compressor allows to have different ways to compress/decompress.
type Map ¶ added in v1.188.0
type Map struct {
// contains filtered or unexported fields
}
Map of compressor.
func (*Map) Register ¶ added in v1.188.0
func (f *Map) Register(kind string, c Compressor)
Register kind and compressor.
Click to show internal directories.
Click to hide internal directories.