Documentation ¶
Index ¶
Constants ¶
View Source
const ( ReloadTypeFsNotify = "fsnotify" ReloadTypeTimer = "timer" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AutoReload bool AutoReloadType ReloadType `json:"autoReloadType" comment:"fsnotify,timer"` // 本地分为Watch和AutoReload,Watch采用系统调用通知,AutoReload定时器去查文件是否变更 AutoReloadInterval time.Duration AutoReloadCallback func(config interface{}) }
type ReloadType ¶ added in v1.5.11
type ReloadType string
Click to show internal directories.
Click to hide internal directories.