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

Method DispatchRuntimeAuthUpdate

internal/watcher/watcher.go:159–161  ·  view source on GitHub ↗

DispatchRuntimeAuthUpdate allows external runtime providers (e.g., websocket-driven auths) to push auth updates through the same queue used by file/config watchers. Returns true if the update was enqueued; false if no queue is configured.

(update AuthUpdate)

Source from the content-addressed store, hash-verified

157// to push auth updates through the same queue used by file/config watchers.
158// Returns true if the update was enqueued; false if no queue is configured.
159func (w *Watcher) DispatchRuntimeAuthUpdate(update AuthUpdate) bool {
160 return w.dispatchRuntimeAuthUpdate(update)
161}
162
163// DispatchPersistedAuthUpdate pushes already-persisted file auth updates through the watcher queue.
164// Returns true if the update was enqueued; false if no queue is configured.

Calls 1