MCPcopy
hub / github.com/influxdata/telegraf / GzipEncoder

Struct GzipEncoder

internal/content_coding.go:170–174  ·  view source on GitHub ↗

GzipEncoder compresses the buffer using gzip at the default level.

Source from the content-addressed store, hash-verified

168
169// GzipEncoder compresses the buffer using gzip at the default level.
170type GzipEncoder struct {
171 pwriter *pgzip.Writer
172 writer *gzip.Writer
173 buf *bytes.Buffer
174}
175
176func NewGzipEncoder(options ...EncodingOption) (*GzipEncoder, error) {
177 cfg := encoderConfig{level: gzip.DefaultCompression}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected