gui/pkg/display/interfaces.go
Virgil 81503d0968
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
chore(gui): align AX naming and docs
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 19:50:55 +00:00

28 lines
675 B
Go

// pkg/display/interfaces.go
package display
import "github.com/wailsapp/wails/v3/pkg/application"
// App abstracts the Wails application for the display orchestrator.
// The service uses Logger() for diagnostics and Quit() for shutdown.
type App interface {
Logger() Logger
Quit()
}
// Logger wraps Wails logging.
type Logger interface {
Info(message string, args ...any)
}
// wailsApp wraps *application.App for the App interface.
type wailsApp struct {
app *application.App
}
func newWailsApp(app *application.App) App {
return &wailsApp{app: app}
}
func (w *wailsApp) Logger() Logger { return w.app.Logger }
func (w *wailsApp) Quit() { w.app.Quit() }