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