daemon¶
Package daemon implements the codespace-zed menu bar applet which hosts a system tray icon, global hotkey listener, and codespace lifecycle management.
Index¶
- type Daemon
- func New(cfg *config.Config, configPath string) *Daemon
- func (d *Daemon) Codespaces() []codespace.Codespace
- func (d *Daemon) Run() error
- func (d *Daemon) SetCodespaces(cs []codespace.Codespace)
- func (d *Daemon) Stop()
type Daemon¶
Daemon is the long-running background process that hosts the system tray, hotkey listener, and codespace poller.
type Daemon struct {
Cfg *config.Config
ConfigPath string
Runner codespace.GHRunner
// contains filtered or unexported fields
}
func New¶
New creates a new Daemon with the given config.
func (*Daemon) Codespaces¶
Codespaces returns the last-polled codespace list.
func (*Daemon) Run¶
Run starts all applet components. It blocks until Stop is called. This must be called from the main OS thread.
func (*Daemon) SetCodespaces¶
SetCodespaces updates the cached codespace list.
func (*Daemon) Stop¶
Stop signals the applet to shut down.
Generated by gomarkdoc