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

Method Encode

internal/content_coding.go:166–166  ·  view source on GitHub ↗
([]byte)

Source from the content-addressed store, hash-verified

164// ContentEncoder applies a wrapper encoding to byte buffers.
165type ContentEncoder interface {
166 Encode([]byte) ([]byte, error)
167}
168
169// GzipEncoder compresses the buffer using gzip at the default level.

Callers 15

WriteMethod · 0.95
TestListenDataFunction · 0.95
TestListenConnectionFunction · 0.95
TestSocketListenerFunction · 0.95
ToBytesFunction · 0.65
migrateFunction · 0.65
SerializeBatchMethod · 0.65
SerializeBatchMethod · 0.65
TestEncodeDecodeMetricFunction · 0.65

Implementers 8

GzipEncoderinternal/content_coding.go
ZlibEncoderinternal/content_coding.go
ZstdEncoderinternal/content_coding.go
IdentityEncoderinternal/content_coding.go
encodePlanUint8CodecBinaryUint64plugins/outputs/postgresql/datatype_ui
encodePlanUint8CodecTextUint64plugins/outputs/postgresql/datatype_ui
encodePlanUint8CodecBinaryUint64Valuerplugins/outputs/postgresql/datatype_ui
encodePlanUint8CodecTextUint64Valuerplugins/outputs/postgresql/datatype_ui

Calls

no outgoing calls

Tested by 15

TestListenDataFunction · 0.76
TestListenConnectionFunction · 0.76
TestSocketListenerFunction · 0.76
TestEncodeDecodeMetricFunction · 0.52
BenchmarkEncodeMetricFunction · 0.52
BenchmarkDecodeMetricFunction · 0.52
testSocketWriterStreamFunction · 0.52
testSocketWriterPacketFunction · 0.52