Documentation ¶
Index ¶
Constants ¶
View Source
const ( LegacyHeaderName = "X-Agent-Id" // LegacyHeaderName represents the header name used prior to the Alloy release. HeaderName = "X-Alloy-Id" // HeaderName represents the ID header to use for Alloy. )
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Init should be called by an app entrypoint as soon as it can to configure where the unique seed will be stored. dir is the directory where we will read and store alloy_seed.json If left empty it will default to $APPDATA or /tmp A unique Alloy seed will be generated when this method is first called, and reused for the lifetime of this Alloy instance.
Types ¶
Click to show internal directories.
Click to hide internal directories.