Update calls the update callback of other instances to synchronize their policy. It is usually called after changing the policy in DB, like Enforcer.SavePolicy(), Enforcer.AddPolicy(), Enforcer.RemovePolicy(), etc.
()
| 24 | // It is usually called after changing the policy in DB, like Enforcer.SavePolicy(), |
| 25 | // Enforcer.AddPolicy(), Enforcer.RemovePolicy(), etc. |
| 26 | Update() error |
| 27 | // Close stops and releases the watcher, the callback function will not be called any more. |
| 28 | Close() |
| 29 | } |
no outgoing calls
no test coverage detected