Documentation
¶
Index ¶
- Constants
- type App
- func (app *App) DesktopIntegration()
- func (app *App) InstallAutoStart() error
- func (a *App) InstallView()
- func (app *App) IsAutoStarted() bool
- func (app *App) MainView()
- func (a *App) PresentationView()
- func (app *App) Quit()
- func (app *App) Run()
- func (app *App) Save() error
- func (app *App) ServerLoop()
- func (app *App) SetMenuEntry(label string, action func())
- func (app *App) SetupSystray()
- func (app *App) StartIfNeeded()
- func (app *App) StartServer() error
- func (app *App) StopServer()
- func (app *App) StopServerIfNeeded()
- func (app *App) UninstallAutoStart() error
- func (a *App) UpdateView()
Constants ¶
View Source
const ( SettingPublicName = "public_name" SettingMaxDiskSize = "max_disk_size" SettingNumBlocks = "num_blocks" SettingAutoStart = "auto_start" //SettingThreshold = "threshold" SettingStopOnProcess = "process_names" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { fyne.App Window fyne.Window Options *petalsserver.RunOptions // contains filtered or unexported fields }
App is the main application of FlowerPot.
func (*App) DesktopIntegration ¶
func (app *App) DesktopIntegration()
DesktopIntegration sets the desktop integration for the app.
func (*App) InstallAutoStart ¶
InstallAutoStart installs the app to auto start at login.
func (*App) IsAutoStarted ¶
IsAutoStarted checks if the app is set to auto start at login.
func (*App) PresentationView ¶
func (a *App) PresentationView()
PresentationView shows the welcome message. It is the first view if the application is launched for the first time (no petals server installtion found).
func (*App) ServerLoop ¶
func (app *App) ServerLoop()
func (*App) SetMenuEntry ¶
func (*App) SetupSystray ¶
func (app *App) SetupSystray()
func (*App) StartIfNeeded ¶
func (app *App) StartIfNeeded()
func (*App) StartServer ¶
func (*App) StopServer ¶
func (app *App) StopServer()
func (*App) StopServerIfNeeded ¶
func (app *App) StopServerIfNeeded()
func (*App) UninstallAutoStart ¶
UninstallAutoStart uninstalls the app from auto start at login.
func (*App) UpdateView ¶
func (a *App) UpdateView()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.