Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyConfigChange ¶
func ApplyConfigChange(oldConfig config.Config, newConfig *config.Config, restartSignal chan<- string)
ApplyConfigChange 执行配置变更副作用。 restartSignal 可为空;为空时将跳过网页服务重启与 tailscale 信号广播。
func StartReScan ¶
func StartReScan()
Types ¶
type ConfigChangeAction ¶
type ConfigChangeAction struct {
ReScanStores bool `json:"reScanStores"`
ReStartWebServer bool `json:"reStartWebServer"`
StartTailscale bool `json:"startTailscale"`
StopTailscale bool `json:"stopTailscale"`
ReStartTailscale bool `json:"reStartTailscale"`
UpdateAutoRescan bool `json:"updateAutoRescan"`
}
func BuildConfigChangeAction ¶
func BuildConfigChangeAction(oldConfig config.Config, newConfig *config.Config) (action ConfigChangeAction)
BuildConfigChangeAction 比较新旧配置,计算后续需要执行的动作。
Click to show internal directories.
Click to hide internal directories.