Documentation ¶
Index ¶
- 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.IResponse
- func (r *Gate) None(abilities []string, arguments map[string]any) bool
- func (r *Gate) WithContext(ctx context.Context) access.IGate
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gate ¶
type Gate struct {
// contains filtered or unexported fields
}
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func NewAllowResponse ¶
func NewAllowResponse() *Response
func NewDenyResponse ¶
Click to show internal directories.
Click to hide internal directories.