stats.go

 1package config
 2
 3// StatsConfig is the configuration for the stats server.
 4type StatsConfig struct {
 5	// ListenAddr is the address on which the stats server will listen.
 6	ListenAddr string `env:"LISTEN_ADDR" yaml:"listen_addr"`
 7}
 8
 9// Environ returns the environment variables for the config.
10func (s StatsConfig) Environ() []string {
11	return []string{
12		"SOFT_SERVE_STATS_LISTEN_ADDR=" + s.ListenAddr,
13	}
14}