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

Method RegisterAgent

pkg/desktop/bridge_web.go:123–128  ·  view source on GitHub ↗

RegisterAgent registers an agent with the bridge

(ag *agent.Agent)

Source from the content-addressed store, hash-verified

121
122// RegisterAgent registers an agent with the bridge
123func (b *WebBridge) RegisterAgent(ag *agent.Agent) error {
124 b.agentsMu.Lock()
125 defer b.agentsMu.Unlock()
126 b.agents[ag.ID()] = ag
127 return nil
128}
129
130// UnregisterAgent unregisters an agent
131func (b *WebBridge) UnregisterAgent(agentID string) error {

Callers

nothing calls this directly

Calls 1

IDMethod · 0.65

Tested by

no test coverage detected