You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package lib
|
|
|
|
|
|
|
|
var (
|
|
|
|
ConfPath = "config"
|
|
|
|
ConfName = "task3"
|
|
|
|
)
|
|
|
|
|
|
|
|
type AppConfig struct {
|
|
|
|
HttpAPI struct {
|
|
|
|
Base string `mapstructure:"base"`
|
|
|
|
Addr string `mapstructure:"addr"`
|
|
|
|
} `mapstructure:"httpApi"`
|
|
|
|
Task struct {
|
|
|
|
Addr string `mapstructure:"addr"`
|
|
|
|
Clients int `mapstructure:"clients"`
|
|
|
|
LetterPath string `mapstructure:"letterPath"`
|
|
|
|
LocalPostboxPath string `mapstructure:"localPostboxPath"`
|
|
|
|
RemotePostboxPath string `mapstructure:"remotePostboxPath"`
|
|
|
|
} `mapstructure:"task"`
|
|
|
|
Redis struct {
|
|
|
|
Addr string `mapstructure:"addr"`
|
|
|
|
ScoreKey string `mapstructure:"scoreKey"`
|
|
|
|
WinnersKey string `mapstructure:"winnersKey"`
|
|
|
|
} `mapstructure:"redis"`
|
|
|
|
}
|