Documentation ¶
Index ¶
Constants ¶
View Source
const (
CloudConfigPollInterval = 1 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func InConfigDir ¶
InConfigDir returns the path to the given filename inside of the configdir.
Types ¶
type Config ¶
type Config struct { Version int CloudConfig string CloudConfigCA string Addr string Role string Country string StatsAddr string CpuProfile string MemProfile string Stats *statreporter.Config Server *server.ServerConfig Client *client.ClientConfig }
func (*Config) ApplyDefaults ¶ added in v1.6.0
func (cfg *Config) ApplyDefaults()
ApplyDefaults implements the method from interface yamlconf.Config
ApplyDefaults populates default values on a Config to make sure that we have a minimum viable config for running. As new settings are added to flashlight, this function should be updated to provide sensible defaults for those settings.
func (*Config) GetVersion ¶ added in v1.6.0
GetVersion implements the method from interface yamlconf.Config
func (*Config) IsDownstream ¶
func (*Config) IsUpstream ¶
func (*Config) SetVersion ¶ added in v1.6.0
SetVersion implements the method from interface yamlconf.Config
Click to show internal directories.
Click to hide internal directories.