StopAutoLoadPolicy causes the go routine to exit.
()
| 116 | |
| 117 | // StopAutoLoadPolicy causes the go routine to exit. |
| 118 | func (e *SyncedEnforcer) StopAutoLoadPolicy() { |
| 119 | if e.IsAutoLoadingRunning() { |
| 120 | e.stopAutoLoad <- struct{}{} |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | // SetWatcher sets the current watcher. |
| 125 | func (e *SyncedEnforcer) SetWatcher(watcher persist.Watcher) error { |