service

package
v1.2.36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 10 Imported by: 0

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 比较新旧配置,计算后续需要执行的动作。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL