Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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.
165
type
ContentEncoder
interface
{
166
Encode([]byte) ([]byte, error)
167
}
168
169
// GzipEncoder compresses the buffer using gzip at the default level.
Callers
15
Write
Method · 0.95
TestListenData
Function · 0.95
TestListenConnection
Function · 0.95
TestSocketListener
Function · 0.95
ToBytes
Function · 0.65
migrate
Function · 0.65
SerializeBatch
Method · 0.65
SerializeBatch
Method · 0.65
TestEncodeDecodeMessagePackTime
Function · 0.65
BenchmarkEncodeMessagePackTime
Function · 0.65
BenchmarkDecodeMessagePackTime
Function · 0.65
TestEncodeDecodeMetric
Function · 0.65
Implementers
8
GzipEncoder
internal/content_coding.go
ZlibEncoder
internal/content_coding.go
ZstdEncoder
internal/content_coding.go
IdentityEncoder
internal/content_coding.go
encodePlanUint8CodecBinaryUint64
plugins/outputs/postgresql/datatype_ui
encodePlanUint8CodecTextUint64
plugins/outputs/postgresql/datatype_ui
encodePlanUint8CodecBinaryUint64Valuer
plugins/outputs/postgresql/datatype_ui
encodePlanUint8CodecTextUint64Valuer
plugins/outputs/postgresql/datatype_ui
Calls
no outgoing calls
Tested by
15
TestListenData
Function · 0.76
TestListenConnection
Function · 0.76
TestSocketListener
Function · 0.76
TestEncodeDecodeMessagePackTime
Function · 0.52
BenchmarkEncodeMessagePackTime
Function · 0.52
BenchmarkDecodeMessagePackTime
Function · 0.52
TestEncodeDecodeMetric
Function · 0.52
BenchmarkEncodeMetric
Function · 0.52
BenchmarkDecodeMetric
Function · 0.52
TestOAuthClientCredentialsGrant
Function · 0.52
testSocketWriterStream
Function · 0.52
testSocketWriterPacket
Function · 0.52