Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Lz4Encoding lz4 encoding
Lz4Encoding = "lz4"
)
View Source
const (
// SnappyEncoding snappy encoding
SnappyEncoding = "snz"
)
View Source
const ( // https://en.wikipedia.org/wiki/Zstd // In 2018 the algorithm was published as RFC 8478, which also defines an associated media type "application/zstd", filename extension "zst", and HTTP content encoding "zstd".[15] // ZstdEncoding zstd encoding ZstdEncoding = "zstd" )
Variables ¶
View Source
var ErrLz4IsNotCompressible = errors.New("Is not compressible for lz4")
Functions ¶
This section is empty.
Types ¶
type Lz4Compressor ¶ added in v0.1.4
Lz4Compressor lz4 compress
type SnappyCompressor ¶
type SnappyCompressor struct {
MinLength int
}
SnappyCompressor snappy compress
func (*SnappyCompressor) Accept ¶
func (s *SnappyCompressor) Accept(c *elton.Context, bodySize int) (acceptable bool, encoding string)
Accept check accept encoding
Click to show internal directories.
Click to hide internal directories.