encoding

package
v0.0.0-...-45a9bcf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package encoding contains two subpackages marshal and unmarshal. They are separate because they are used in two different contexts and only share the common protobuf format, which comes from the github.com/DataDog/agent-payload package.

The unmarshaller is used in the agent/process-agent to unmarshal data retrieved from system-probe. The marshaller is used only in system-probe to marshal its internal types to the common json/protobuf formats.

If you combine the subpackages, then you end up having the agent/process-agent importing all the internal types from system-probe, which it has no need for. This results in a situation where additional imports in some seemingly unrelated system-probe packages, cause additional imports in agent/process-agent for no reason, which also increases the binary size.

Directories

Path Synopsis
Package marshal implements the marshaling side of network encoding
Package marshal implements the marshaling side of network encoding
Package unmarshal implements the unmarshalling side of network encoding
Package unmarshal implements the unmarshalling side of network encoding

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL