Documentation
¶
Overview ¶
Package tray puts a Kite icon in the system tray so the app keeps running (and the VPN stays connected) when its window is closed, instead of quitting -- with a menu to reopen the window, disconnect, or actually quit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetConnected ¶
func SetConnected(connected bool)
SetConnected shows or hides the tray's Disconnect item to match the real connection state.
func Start ¶
func Start(iconPNG []byte, onShow, onDisconnect, onQuit func())
Start blocks running the tray's native event loop until Quit is called, so call it in its own goroutine. iconPNG is used as-is on macOS/Linux; on Windows it's wrapped in a minimal ICO container first, since Windows tray icons need that format, not raw PNG.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.