DispatchRuntimeAuthUpdate forwards runtime auth updates (e.g., websocket providers) into the watcher-managed auth update queue when available. Returns true if the update was enqueued successfully.
(update watcher.AuthUpdate)
| 151 | // into the watcher-managed auth update queue when available. |
| 152 | // Returns true if the update was enqueued successfully. |
| 153 | func (w *WatcherWrapper) DispatchRuntimeAuthUpdate(update watcher.AuthUpdate) bool { |
| 154 | if w == nil || w.dispatchRuntimeUpdate == nil { |
| 155 | return false |
| 156 | } |
| 157 | return w.dispatchRuntimeUpdate(update) |
| 158 | } |
| 159 | |
| 160 | // DispatchPersistedAuthUpdate forwards already-persisted file auth updates. |
| 161 | func (w *WatcherWrapper) DispatchPersistedAuthUpdate(update watcher.AuthUpdate) bool { |