Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // All logs redirected to file LogFile string // Path to directory contains task xml files TaskDir string Database struct { Connection string MaxConnections int SafeReinit bool } Scoreboard struct { WwwPath string TemplatePath string Addr string RecalcTimeout _duration } WebsocketTimeout struct { Info _duration Scoreboard _duration Tasks _duration } TaskPrice struct { UseNonLinear bool UseTeamsBase bool TeamsBase int P500, P400, P300, P200 int } Game struct { Start _time End _time } Flag struct { // Timeout between send flags SendTimeout _duration } Task struct { // Timeout after send correct flag before open next task OpenTimeout _duration // Auto open task after previous solved AutoOpen bool AutoOpenTimeout _duration } Teams []struct { Name string Description string Token string Test bool } }
Config is a configuration of henhouse
func ReadConfig ¶
ReadConfig read file and return configuration
Click to show internal directories.
Click to hide internal directories.