tray

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package tray shows a system-tray icon while the gateway runs: its presence is the status light, and its menu carries the one action a tray owes its user — quitting the daemon. Linux speaks StatusNotifierItem over the session D-Bus and Windows the win32 shell, both pure Go; macOS would need cgo and this binary stays CGO-free, so there the stub build applies and the gateway simply runs without an icon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Quit

func Quit()

Quit ends Run, which the gateway's own shutdown triggers so the icon never outlives the daemon it stands for.

func Run

func Run(version string, status func() []string, onQuit func())

Run shows the icon and blocks until Quit is called. status feeds the overview the menu shows — clicking the icon opens it, and every open re-asks so the rows say what is true now, not at startup. onQuit runs when the user picks "Quit Factor". Where no session can carry an icon — a headless box, an ssh login — Run returns at once and the gateway simply runs without one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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