MCPcopy Create free account
hub / github.com/astercloud/aster / WailsBridge

Struct WailsBridge

pkg/desktop/bridge_wails.go:20–28  ·  view source on GitHub ↗

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:

Source from the content-addressed store, hash-verified

18// Bind: []interface{}{app.Bridge()},
19// })
20type 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
31func NewWailsBridge(app *App) (*WailsBridge, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected