MCPcopy Create free account
hub / github.com/PatchMon/PatchMon / Get

Method Get

server-source-code/internal/agentregistry/registry.go:145–152  ·  view source on GitHub ↗

Get returns connection info for an api_id.

(apiID string)

Source from the content-addressed store, hash-verified

143
144// Get returns connection info for an api_id.
145func (r *Registry) Get(apiID string) ConnectionInfo {
146 r.mu.RLock()
147 defer r.mu.RUnlock()
148 if info, ok := r.meta[apiID]; ok && info.Connected {
149 return info
150 }
151 return ConnectionInfo{Connected: false, Secure: false}
152}
153
154// GetConnectedApiIDs returns all api_ids that are currently connected.
155func (r *Registry) GetConnectedApiIDs() []string {

Calls

no outgoing calls