Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ResultDir string `env:"SOLUTION_SERVER_RESULT_DIR" envDefault:"./results"` Port string `env:"SOLUTION_SERVER_PORT" envDefault:":45042"` SendDelay int `env:"SOLUTION_SEND_DELAY" envDefault:"5000"` ErrPercent float64 `env:"SOLUTION_ERR_PERCENT" envDefault:"0.1"` NumUpdates int `env:"SOLUTION_NUM_UPDATES" envDefault:"1"` MaxSolutions int `env:"SOLUTION_MAX_SOLUTIONS" envDefault:"1"` }
Config represents the application configuration state loaded from env vars.
func LoadConfig ¶
LoadConfig loads the config from the environment if necessary and returns a copy.
Click to show internal directories.
Click to hide internal directories.