app

package
v0.0.0-...-ae451d1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: MIT Imports: 3 Imported by: 0

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

func GetSourceDetailsMap(maps ...map[string]interface{}) map[string]interface{}

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.

func New

func New() SourceDetails

New returns a SourceDetails

Jump to

Keyboard shortcuts

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