Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = "unknown" // nolint:gochecknoglobals BuildDate = "unknown" // nolint:gochecknoglobals Commit = "unknown" // nolint:gochecknoglobals )
These are set at build time - see makefile
Functions ¶
func GenerateUUID ¶
func GenerateUUID() string
GenerateUUID generates a UUID string. used for lambda cold start container tracking
func GetSourceDetailsMap ¶
GetSourceDetailsMap returns a map containing SourceDetails based on mapstructure keys It can be passed extra maps whose k:v's will also be added to the returned map SourceDetails k:v's trump passed in duplicates
Types ¶
type SourceDetails ¶
type SourceDetails struct { Name string `mapstructure:"name"` BuildDate string `mapstructure:"-"` Commit string `mapstructure:"commit"` }
SourceDetails is useful for debugging.
Click to show internal directories.
Click to hide internal directories.