Documentation ¶
Index ¶
- func NewAllowResponse() access.Response
- func NewDenyResponse(message string) access.Response
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAllowResponse ¶ added in v1.13.1
func NewDenyResponse ¶ added in v1.13.1
Types ¶
type Gate ¶
type Gate struct {
// contains filtered or unexported fields
}
type ResponseImpl ¶ added in v1.13.1
type ResponseImpl struct {
// contains filtered or unexported fields
}
func (*ResponseImpl) Allowed ¶ added in v1.13.1
func (r *ResponseImpl) Allowed() bool
func (*ResponseImpl) Message ¶ added in v1.13.1
func (r *ResponseImpl) Message() string
Click to show internal directories.
Click to hide internal directories.