Versions in this module Expand all Collapse all v1 v1.0.1 Apr 19, 2024 Changes in this version + func NewAllowResponse() access.Response + func NewDenyResponse(message string) access.Response + type Gate struct + func NewGate(ctx context.Context) *Gate + func (r *Gate) After(...) + func (r *Gate) Allows(ability string, arguments map[string]any) bool + func (r *Gate) Any(abilities []string, arguments map[string]any) bool + func (r *Gate) Before(...) + func (r *Gate) Define(ability string, ...) + func (r *Gate) Denies(ability string, arguments map[string]any) bool + func (r *Gate) Inspect(ability string, arguments map[string]any) access.Response + func (r *Gate) None(abilities []string, arguments map[string]any) bool + func (r *Gate) WithContext(ctx context.Context) access.Gate + type ResponseImpl struct + func (r *ResponseImpl) Allowed() bool + func (r *ResponseImpl) Message() string