Documentation
¶
Overview ¶
Package conf Define the configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TaskCleanDuration ¶
func TaskSyncDuration ¶
Types ¶
type Conf ¶
type Conf struct {
Debug bool `env:"DEBUG" default:"false"`
EnableEss bool `env:"ENABLE_ESS" default:"false"`
ListenAddr string `env:"LISTEN_ADDR" default:":9027"`
SoldierAddr string `env:"SOLDIER_ADDR"`
SchedulerAddr string `env:"SCHEDULER_ADDR"`
TaskSyncDuration time.Duration `env:"TASK_SYNC_DURATION" default:"2h"`
TaskCleanDuration time.Duration `env:"TASK_CLEAN_DURATION" default:"24h"`
}
Conf Define the configuration
Click to show internal directories.
Click to hide internal directories.