tray

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tray

type Tray struct {
	// contains filtered or unexported fields
}

Tray runs a Win32 message loop, owns the notification icon, and shows rate-limited balloon notifications when alerts arrive.

func New

func New(cfg *config.Config, dashboardURL, configPath string, emitter *event.Emitter, onQuit func()) *Tray

func (*Tray) Run

func (t *Tray) Run()

Run blocks until the tray icon is destroyed. It must be called on a dedicated OS thread because Windows requires the message loop to live on the thread that registered the window class.

func (*Tray) SetConfig

func (t *Tray) SetConfig(cfg *config.Config)

SetConfig hot-swaps the config (notably the rate limit/severity policy).

func (*Tray) Stop added in v0.3.0

func (t *Tray) Stop()

Stop signals the tray message loop to exit. It does not call onQuit to avoid double-cancel when Stop is called as part of a wider shutdown.

Jump to

Keyboard shortcuts

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