WailsBridge provides integration with Wails framework. Wails uses direct Go function binding, making it the most efficient option for Go-based desktop applications. Usage in Wails app: app := desktop.NewApp(&desktop.AppConfig{Framework: desktop.FrameworkWails}) wails.Run(&options.App{ Bind:
| 18 | // Bind: []interface{}{app.Bridge()}, |
| 19 | // }) |
| 20 | type WailsBridge struct { |
| 21 | app *App |
| 22 | handler MessageHandler |
| 23 | agents map[string]*agent.Agent |
| 24 | agentsMu sync.RWMutex |
| 25 | eventCh chan *FrontendEvent |
| 26 | ctx context.Context |
| 27 | cancel context.CancelFunc |
| 28 | } |
| 29 | |
| 30 | // NewWailsBridge creates a new Wails bridge |
| 31 | func NewWailsBridge(app *App) (*WailsBridge, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected