Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultHeader = "X-Track-ID" Header = DefaultHeader Key = "track_id" )
Variables ¶
This section is empty.
Functions ¶
func GenerateTrackID ¶ added in v0.1.4
func MustTrackID ¶
func NewTrackID ¶
func NewTrackID() string
Types ¶
type Config ¶
type Config struct {
Enabled bool `mapstructure:"enabled" yaml:"enabled"`
Header string `mapstructure:"header" yaml:"header"`
ResponseHeader string `mapstructure:"response_header" yaml:"response_header"`
Generator string `mapstructure:"generator" yaml:"generator"`
ForceNew bool `mapstructure:"force_new" yaml:"force_new"`
}
func DefaultConfig ¶
func DefaultConfig() Config
func NormalizeConfig ¶ added in v0.1.4
Click to show internal directories.
Click to hide internal directories.