MCPcopy Index your code
hub / github.com/apache/casbin / SetDetectors

Method SetDetectors

enforcer.go:306–308  ·  view source on GitHub ↗

SetDetectors sets multiple detectors for the enforcer.

(detectors []detector.Detector)

Source from the content-addressed store, hash-verified

304
305// SetDetectors sets multiple detectors for the enforcer.
306func (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.

Callers 1

TestEnforcerSetDetectorsFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestEnforcerSetDetectorsFunction · 0.76