Versions in this module Expand all Collapse all v1 v1.10.2 Jun 26, 2023 v1.10.1 Mar 31, 2023 Changes in this version + type Gate interface + After func(...) + Allows func(ability string, arguments map[string]any) bool + Any func(abilities []string, arguments map[string]any) bool + Before func(...) + Define func(ability string, ...) + Denies func(ability string, arguments map[string]any) bool + Inspect func(ability string, arguments map[string]any) Response + None func(abilities []string, arguments map[string]any) bool + WithContext func(ctx context.Context) Gate + type Response interface + Allowed func() bool + Message func() string + func NewAllowResponse() Response + func NewDenyResponse(message string) Response + type ResponseImpl struct + func (r *ResponseImpl) Allowed() bool + func (r *ResponseImpl) Message() string