{"modulePath":"github.com/DataDog/datadog-agent","version":"v0.0.0-20260521051500-e70f483e68d2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package encoding\n\n## Constants\n\n```go\nconst ContentTypeJSON = \"application/json\"\n```\nContentTypeJSON holds the HTML content-type of a JSON payload\n\n```go\nconst ContentTypeProtobuf = \"application/protobuf\"\n```\nContentTypeProtobuf holds the HTML content-type of a Protobuf payload\n\n## Types\n\n```go\ntype Marshaler interface {\n\tMarshal(stats map[int32]*procutil.StatsWithPerm) ([]byte, error)\n\tContentType() string\n}\n```\nMarshaler is an interface implemented by all stats serializers\n\n```go\nfunc GetMarshaler(accept string) Marshaler\n```\nGetMarshaler returns the appropriate Marshaler based on the given accept header\n\n```go\ntype Unmarshaler interface {\n\tUnmarshal([]byte) (*model.ProcStatsWithPermByPID, error)\n}\n```\nUnmarshaler is an interface implemented by all process stats deserializers\n\n```go\nfunc GetUnmarshaler(ctype string) Unmarshaler\n```\nGetUnmarshaler returns the appropriate Unmarshaler based on the given content type\n\n","path":"github.com/DataDog/datadog-agent/pkg/process/encoding","name":"encoding","synopsis":"","isRedistributable":true}
