Documentation ¶
Index ¶
- Constants
- func Auth(errHandler func(c *gin.Context, code int, err error)) func(c *gin.Context)
- func GetAuth(c *gin.Context) (user, password string, err error)
- func Init(r gin.IRouter)
- func Register(plugin Plugin)
- func RegisterGenerateAuth(r gin.IRouter)
- func Start()
- func Stop()
- func StopWithCtx(ctx context.Context)
- type Plugin
Constants ¶
View Source
const ( UserKey = "user" PasswordKey = "password" )
Variables ¶
This section is empty.
Functions ¶
func RegisterGenerateAuth ¶
func StopWithCtx ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.