Documentation ¶
Index ¶
Constants ¶
View Source
const ERR_FORBIDDEN = "err_forbidden"
View Source
const ERR_PARAMETER = "err_parameter"
View Source
const ERR_UNAUTHORIZED = "err_unauthorized"
View Source
const KEY_BasicRole = "basic_role"
View Source
const KEY_CasbinAnonymous = "casbin_anonymous"
View Source
const KEY_Username = "username"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorMessage ¶
type ErrorMessage struct { ErrorTitle string `json:"error" form:"error" query:"error"` ErrorDescription string `json:"error_description" form:"error_description" query:"error_description"` }
ErrorMessage
func ErrForbidden ¶
func ErrForbidden() *ErrorMessage
func ErrParameter ¶
func ErrParameter() *ErrorMessage
func ErrUnauthorized ¶
func ErrUnauthorized() *ErrorMessage
func (*ErrorMessage) Error ¶
func (em *ErrorMessage) Error() string
Error makes it compatible with `error` interface.
type PolicyGroup ¶
Click to show internal directories.
Click to hide internal directories.