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

Method SetConfig

pkg/desktop/bridge_wails.go:164–170  ·  view source on GitHub ↗

SetConfig sets configuration Exposed to Wails frontend as: window.go.desktop.WailsBridge.SetConfig(config)

(cfg ConfigPayload)

Source from the content-addressed store, hash-verified

162// SetConfig sets configuration
163// Exposed to Wails frontend as: window.go.desktop.WailsBridge.SetConfig(config)
164func (b *WailsBridge) SetConfig(cfg ConfigPayload) (*BackendResponse, error) {
165 return b.handler(&FrontendMessage{
166 ID: generateID(),
167 Type: MsgTypeSetConfig,
168 Payload: mustMarshal(cfg),
169 })
170}
171
172// GetConfig gets current configuration
173// Exposed to Wails frontend as: window.go.desktop.WailsBridge.GetConfig()

Callers

nothing calls this directly

Calls 2

mustMarshalFunction · 0.85
generateIDFunction · 0.70

Tested by

no test coverage detected