Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller manages the system tray state and exposes status for UI. The actual systray integration is Windows-specific and will use platform-specific build tags. This controller is the shared logic.
func NewController ¶
func NewController(bus *events.Bus, s *store.Store, onQuit func()) *Controller
NewController creates a tray controller.
func (*Controller) GetStatus ¶
func (c *Controller) GetStatus() Status
GetStatus returns the current companion status.
func (*Controller) StatusLine ¶
func (c *Controller) StatusLine() string
StatusLine returns a one-line summary for the tray tooltip.
Click to show internal directories.
Click to hide internal directories.