Documentation ¶
Index ¶
Constants ¶
View Source
const AuthorizationHeader = "Authorization"
View Source
const BearerHeader = "Bearer "
View Source
const UserKey = "UserKey"
Variables ¶
This section is empty.
Functions ¶
func SkipHandler ¶
func SkipHandler(c *gin.Context, skippers ...SkipperFunc) bool
func UserAuth ¶
func UserAuth(skippers Skippers, geter UserGetter) gin.HandlerFunc
Types ¶
type SkipperFunc ¶
func AllowPathPrefixSkipper ¶
func AllowPathPrefixSkipper(prefixes ...string) SkipperFunc
type Skippers ¶
type Skippers []SkipperFunc
Click to show internal directories.
Click to hide internal directories.