# Functions
NewEnforcer checks whether the subject is authorized to do the specified action on the given object.
# Constants
CasbinEnforcerContextKey holds the key to retrieve the active casbin Enforcer.
CasbinModelContextKey holds the key to store the access control model in context, it can be a path to configuration file or a casbin/model Model.
CasbinPolicyContextKey holds the key to store the access control policy in context, it can be a path to policy file or an implementation of casbin/persist Adapter interface.
# Variables
ErrModelContextMissing denotes a casbin model was not passed into the parsing of middleware's context.
ErrPolicyContextMissing denotes a casbin policy was not passed into the parsing of middleware's context.
ErrUnauthorized denotes the subject is not authorized to do the action intended on the given object, based on the context model and policy.