SetAdapter sets the current adapter.
(adapter persist.Adapter)
| 238 | |
| 239 | // SetAdapter sets the current adapter. |
| 240 | func (e *Enforcer) SetAdapter(adapter persist.Adapter) { |
| 241 | e.adapter = adapter |
| 242 | } |
| 243 | |
| 244 | // SetWatcher sets the current watcher. |
| 245 | func (e *Enforcer) SetWatcher(watcher persist.Watcher) error { |
no outgoing calls