Documentation
¶
Overview ¶
Package app holds the wails app and all emit aswell as export functions that can be used in TS
Package app holds the wails app and all emit aswell as export functions that can be used in TS
Index ¶
- type App
- func (a *App) GetImageData() map[string]string
- func (a *App) HideWindow()
- func (a *App) LaunchSearch(input string)
- func (a *App) LogErrorTS(message string)
- func (a *App) LogEventTS(event string, message string)
- func (a *App) OpenFileExplorer(filePath string)
- func (a *App) ShowWindow()
- func (a *App) Startup(CTX context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
CTX context.Context
SearchHandler *modules.SearchHandler
// contains filtered or unexported fields
}
App holds all the main data and functions relevant to the front- and backend.
func (*App) GetImageData ¶
GetImageData emits a map[name]base64 png data to the frotend to bind in the images
func (*App) HideWindow ¶
func (a *App) HideWindow()
HideWindow is a wrapper around runtime.WindowHide that ensures our cache data doesn't unnecessarily stay in memory
func (*App) LaunchSearch ¶
LaunchSearch starts a search on the SearchHandler of the app
func (*App) LogErrorTS ¶
LogErrorTS will log a message received from TS
func (*App) LogEventTS ¶
LogEventTS will log an event received from TS
func (*App) OpenFileExplorer ¶
OpenFileExplorer allows you to open the file manager at any entry's location and select it (if the file manager is dolphin or nautilus)
func (*App) ShowWindow ¶
func (a *App) ShowWindow()
ShowWindow is a wrapper around runtime.WindowShow that ensures we load our cache data into memory