SetDetectors sets multiple detectors for the enforcer.
(detectors []detector.Detector)
| 304 | |
| 305 | // SetDetectors sets multiple detectors for the enforcer. |
| 306 | func (e *Enforcer) SetDetectors(detectors []detector.Detector) { |
| 307 | e.detectors = detectors |
| 308 | } |
| 309 | |
| 310 | // RunDetections runs all detectors on all role managers. |
| 311 | // Returns the first error encountered, or nil if all checks pass. |
no outgoing calls