MCPcopy
hub / github.com/caddyserver/caddy / Zstd

Struct Zstd

modules/caddyhttp/encode/zstd/zstd.go:32–42  ·  view source on GitHub ↗

Zstd can create Zstandard encoders.

Source from the content-addressed store, hash-verified

30
31// Zstd can create Zstandard encoders.
32type Zstd struct {
33 // The compression level. Accepted values: fastest, better, best, default.
34 Level string `json:"level,omitempty"`
35
36 // Whether to include the optional 4-byte zstd frame checksum trailer.
37 // If unset, the upstream zstd library default is preserved.
38 Checksum *bool `json:"checksum,omitempty"`
39
40 // Compression level refer to type constants value from zstd.SpeedFastest to zstd.SpeedBestCompression
41 level zstd.EncoderLevel
42}
43
44// CaddyModule returns the Caddy module information.
45func (Zstd) CaddyModule() caddy.ModuleInfo {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected