RegisterAgent registers an agent with the bridge
(ag *agent.Agent)
| 58 | |
| 59 | // RegisterAgent registers an agent with the bridge |
| 60 | func (b *WailsBridge) RegisterAgent(ag *agent.Agent) error { |
| 61 | b.agentsMu.Lock() |
| 62 | defer b.agentsMu.Unlock() |
| 63 | b.agents[ag.ID()] = ag |
| 64 | return nil |
| 65 | } |
| 66 | |
| 67 | // UnregisterAgent unregisters an agent |
| 68 | func (b *WailsBridge) UnregisterAgent(agentID string) error { |