Versions in this module Expand all Collapse all v0 v0.9.0 Jun 24, 2019 v0.8.0 Nov 8, 2018 Changes in this version + const CasbinEnforcerContextKey + const CasbinModelContextKey + const CasbinPolicyContextKey + var ErrModelContextMissing = errors.New("CasbinModel is required in context") + var ErrPolicyContextMissing = errors.New("CasbinPolicy is required in context") + var ErrUnauthorized = errors.New("Unauthorized Access") + func NewEnforcer(subject string, object interface{}, action string) endpoint.Middleware