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)
| 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. |
| 159 | func (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. |