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

Struct DefaultDetector

detector/default_detector.go:32–32  ·  view source on GitHub ↗

DefaultDetector is the default implementation of the Detector interface. It uses depth-first search (DFS) to detect cycles in role inheritance.

Source from the content-addressed store, hash-verified

30// DefaultDetector is the default implementation of the Detector interface.
31// It uses depth-first search (DFS) to detect cycles in role inheritance.
32type DefaultDetector struct{}
33
34// NewDefaultDetector creates a new instance of DefaultDetector.
35func NewDefaultDetector() *DefaultDetector {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected