Documentation ¶
Index ¶
- func BindBadParamsHandler() bind.Handler
- func NoMethodHandler() gin.HandlerFunc
- func NotFoundHandler() gin.HandlerFunc
- func UseAcceptLanguage(defaultLanguage string) gin.HandlerFunc
- func UseAuthenticate(v authen.TokenParser) gin.HandlerFunc
- func UseCors(cors *httpx.Cors) gin.HandlerFunc
- func UseLogger(logger *logrus.Logger, skips ...string) gin.HandlerFunc
- func UseOpenAPIAuth(author authen.KeyAuthor) gin.HandlerFunc
- func UseRecovery(logger *logrus.Logger) gin.HandlerFunc
- func UseRequestId() gin.HandlerFunc
- func UseRoleAuthorize(resolver role.Resolver, userRole user.UserInfo) gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindBadParamsHandler ¶
func UseAcceptLanguage ¶
func UseAcceptLanguage(defaultLanguage string) gin.HandlerFunc
UseAcceptLanguage get accept language from http header
func UseAuthenticate ¶
func UseAuthenticate(v authen.TokenParser) gin.HandlerFunc
func UseOpenAPIAuth ¶
func UseOpenAPIAuth(author authen.KeyAuthor) gin.HandlerFunc
func UseRecovery ¶
func UseRecovery(logger *logrus.Logger) gin.HandlerFunc
UseRecovery handler chain recover
func UseRequestId ¶
func UseRequestId() gin.HandlerFunc
func UseRoleAuthorize ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.