Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidVar = errors.New("invalid var")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ServerAddr string `toml:"server_addr"` ServerPort int `toml:"server_port"` FrontendURL string `toml:"frontend_url"` VoteStep float64 `toml:"vote_step"` QrCodeSize int `toml:"qr_code_size"` CleanOverTime int `toml:"clean_over_time"` }
func LoadConfig ¶
func (*Config) BuildServerAddr ¶
func (*Config) GetQrCodeSize ¶
func (*Config) SetConfigFromEnv ¶
func (*Config) SetDefaults ¶
func (c *Config) SetDefaults()
Click to show internal directories.
Click to hide internal directories.