all: add api driven config reload at runtime

This commit is contained in:
Cuong Manh Le
2024-08-01 21:04:21 +07:00
committed by Cuong Manh Le
parent 95a9df826d
commit 82e0d4b0c4
5 changed files with 111 additions and 23 deletions
+1
View File
@@ -209,6 +209,7 @@ type ServiceConfig struct {
MetricsListener string `mapstructure:"metrics_listener" toml:"metrics_listener,omitempty"`
DnsWatchdogEnabled *bool `mapstructure:"dns_watchdog_enabled" toml:"dns_watchdog_enabled,omitempty"`
DnsWatchdogInvterval *time.Duration `mapstructure:"dns_watchdog_interval" toml:"dns_watchdog_interval,omitempty"`
RefreshTime *int `mapstructure:"refresh_time" toml:"refresh_time,omitempty"`
Daemon bool `mapstructure:"-" toml:"-"`
AllocateIP bool `mapstructure:"-" toml:"-"`
}