system_tray

package
v1.2.34 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupSystray

func SetupSystray(
	startServer, shutdownServer func(),
	getURL func() string,
	getBrowserURL func() string,
	getConfigDir func() (string, error),
	getStoreUrls func() []string,
	toggleTailscale func() error,
	setLanguage func(string) error,
	getTailscaleEnabled func() bool,
	releaseSingleInstance func(),
) int

SetupSystray 设置系统托盘 startServer: 启动服务器的函数 shutdownServer: 清理服务器的函数 getURL: 获取服务器URL的函数 getBrowserURL: 获取本机浏览器URL的函数 getConfigDir: 获取配置目录的函数 getStoreUrls: 获取书库URL列表的函数 toggleTailscale: 切换Tailscale状态的函数 setLanguage: 设置语言的函数 getTailscaleEnabled: 获取Tailscale是否启用的函数 releaseSingleInstance: 升级重启前释放单实例锁(未启用单实例时传 nil) 返回值:托盘流程要求入口退出时返回退出码;普通退出返回 -1,由入口自然结束。

Types

This section is empty.

Jump to

Keyboard shortcuts

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