Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupSystray ¶
func SetupSystray( startServer, shutdownServer func(), getURL func() string, getConfigDir func() (string, error), getStoreUrls func() []string, toggleTailscale func() error, setLanguage func(string) error, getTailscaleEnabled func() bool, releaseSingleInstance func(), )
SetupSystray 设置系统托盘 startServer: 启动服务器的函数 shutdownServer: 清理服务器的函数 getURL: 获取服务器URL的函数 getConfigDir: 获取配置目录的函数 getStoreUrls: 获取书库URL列表的函数 toggleTailscale: 切换Tailscale状态的函数 setLanguage: 设置语言的函数 getTailscaleEnabled: 获取Tailscale是否启用的函数 releaseSingleInstance: 升级重启前释放单实例锁(未启用单实例时传 nil)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.