MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / Close

Method Close

pkg/api/group-client-manager.go:227–237  ·  view source on GitHub ↗

Close disconnects all clients and cleans up resources.

()

Source from the content-addressed store, hash-verified

225
226// Close disconnects all clients and cleans up resources.
227func (m *GroupClientManager) Close() {
228 m.mu.Lock()
229 defer m.mu.Unlock()
230
231 for name, pc := range m.clients {
232 pc.SetStatus(ProfileStatusDisconnected, nil)
233 m.logger.Debug("Disconnected from profile %s", name)
234 }
235
236 m.clients = make(map[string]*ProfileClient)
237}
238
239// ConnectionSummary represents the connection status of the group.
240type ConnectionSummary struct {

Callers

nothing calls this directly

Calls 2

SetStatusMethod · 0.80
DebugMethod · 0.65

Tested by

no test coverage detected