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

Struct ContextEnforcer

enforcer_context.go:28–31  ·  view source on GitHub ↗

ContextEnforcer wraps Enforcer and provides context-aware operations.

Source from the content-addressed store, hash-verified

26
27// ContextEnforcer wraps Enforcer and provides context-aware operations.
28type ContextEnforcer struct {
29 *Enforcer
30 adapterCtx persist.ContextAdapter
31}
32
33// NewContextEnforcer creates a context-aware enforcer via file or DB.
34func NewContextEnforcer(params ...interface{}) (IEnforcerContext, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected