Zstd can create Zstandard encoders.
| 30 | |
| 31 | // Zstd can create Zstandard encoders. |
| 32 | type 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. |
| 45 | func (Zstd) CaddyModule() caddy.ModuleInfo { |
nothing calls this directly
no outgoing calls
no test coverage detected