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

Method EnforceExWithMatcher

enforcer.go:944–948  ·  view source on GitHub ↗

EnforceExWithMatcher use a custom matcher and explain enforcement by informing matched rules.

(matcher string, rvals ...interface{})

Source from the content-addressed store, hash-verified

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) {
945 explain := []string{}
946 result, err := e.enforce(matcher, &explain, rvals...)
947 return result, explain, err
948}
949
950// BatchEnforce enforce in batches.
951func (e *Enforcer) BatchEnforce(requests [][]interface{}) ([]bool, error) {

Callers

nothing calls this directly

Calls 1

enforceMethod · 0.95

Tested by

no test coverage detected