Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authorization ¶ added in v0.8.1
type Authorization struct {
auth.RequestUser
}
type Policier ¶
type Policier interface { Before(IUser auth.IUser, routeParamMap map[key]value) *bool Create(IUser auth.IUser, routeParamMap map[key]value) bool Update(IUser auth.IUser, routeParamMap map[key]value) bool Delete(IUser auth.IUser, routeParamMap map[key]value) bool ForceDelete(IUser auth.IUser, routeParamMap map[key]value) bool View(IUser auth.IUser, routeParamMap map[key]value) bool Restore(IUser auth.IUser, routeParamMap map[key]value) bool }
type RoutePolicier ¶
type UserNotPermitError ¶
type UserNotPermitError struct{}
func (UserNotPermitError) Error ¶
func (e UserNotPermitError) Error() string
Click to show internal directories.
Click to hide internal directories.