MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / SnapshotCoreAuths

Method SnapshotCoreAuths

internal/watcher/watcher.go:170–177  ·  view source on GitHub ↗

SnapshotCoreAuths converts current clients snapshot into core auth entries.

()

Source from the content-addressed store, hash-verified

168
169// SnapshotCoreAuths converts current clients snapshot into core auth entries.
170func (w *Watcher) SnapshotCoreAuths() []*coreauth.Auth {
171 w.clientsMutex.RLock()
172 cfg := w.config
173 authDir := w.authDir
174 parser := w.pluginAuthParser
175 w.clientsMutex.RUnlock()
176 return snapshotCoreAuths(cfg, authDir, parser)
177}

Callers 2

defaultWatcherFactoryFunction · 0.95

Calls 1

snapshotCoreAuthsFunction · 0.85

Tested by 1