Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authorization ¶
type Authorization struct {
auth.RequestUser
}
type Context ¶
type Context interface { context.LifeCycleContextor context.ResponseContextor auth.Context auth.RequestIUser }
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.