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

Method EnforceEx

enforcer.go:937–941  ·  view source on GitHub ↗

EnforceEx explain enforcement by informing matched rules.

(rvals ...interface{})

Source from the content-addressed store, hash-verified

935
936// EnforceEx explain enforcement by informing matched rules.
937func (e *Enforcer) EnforceEx(rvals ...interface{}) (bool, []string, error) {
938 explain := []string{}
939 result, err := e.enforce("", &explain, rvals...)
940 return result, explain, err
941}
942
943// EnforceExWithMatcher use a custom matcher and explain enforcement by informing matched rules.
944func (e *Enforcer) EnforceExWithMatcher(matcher string, rvals ...interface{}) (bool, []string, error) {

Callers 1

ExplainMethod · 0.95

Calls 1

enforceMethod · 0.95

Tested by

no test coverage detected