MCPcopy
hub / github.com/apache/casbin / NewDefaultEffector

Function NewDefaultEffector

effector/default_effector.go:28–31  ·  view source on GitHub ↗

NewDefaultEffector is the constructor for DefaultEffector.

()

Source from the content-addressed store, hash-verified

26
27// NewDefaultEffector is the constructor for DefaultEffector.
28func NewDefaultEffector() *DefaultEffector {
29 e := DefaultEffector{}
30 return &e
31}
32
33// MergeEffects merges all matching results collected by the enforcer into a single decision.
34func (e *DefaultEffector) MergeEffects(expr string, effects []Effect, matches []float64, policyIndex int, policyLength int) (Effect, int, error) {

Callers 1

initializeMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…