Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { JWT *jwt.GinJWTMiddleware // contains filtered or unexported fields }
Controller external service interface
func (*Controller) CheckActive ¶
func (con *Controller) CheckActive() func(ctx *gin.Context)
CheckActive middleware that checks the active
func (*Controller) Login ¶
func (con *Controller) Login(ctx *gin.Context) (uint32, error)
Login JWT validation
func (*Controller) RegisterRouter ¶
func (con *Controller) RegisterRouter(r gin.IRouter)
RegisterRouter register router. It fatal because there is no service if register failed.
Click to show internal directories.
Click to hide internal directories.