Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveCrashes ¶
func RemoveCrashes()
RemoveCrashes removes the crash-reports from `logs` folder
Types ¶
type Systray ¶
type Systray struct { // Whether the Agent is in Pause mode Hibernate bool // The version of the Agent, displayed in the trayicon menu Version string // The url of the debug page. It's a function because it could change port DebugURL func() string // The active configuration file AdditionalConfig string // The path to the directory containing the configuration files ConfigDir *paths.Path // contains filtered or unexported fields }
Systray manages the systray icon with its menu and actions. It also handles the pause/resume behaviour of the agent
func (*Systray) Pause ¶
func (s *Systray) Pause()
Pause restarts the program with the hibernate flag set to true
func (*Systray) Restart ¶
func (s *Systray) Restart()
Restart restarts the program it works by finding the executable path and launching it before quitting
func (*Systray) RestartWith ¶
RestartWith restarts the program with the given path
func (*Systray) Resume ¶
func (s *Systray) Resume()
Resume restarts the program with the hibernate flag set to false
func (*Systray) SetCurrentConfigFile ¶
func (s *Systray) SetCurrentConfigFile(configPath *paths.Path)
SetCurrentConfigFile allows to specify the path of the configuration file the agent is using. The tray menu with this info can display an "open config file" option.
Click to show internal directories.
Click to hide internal directories.