Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewMiddleware ¶
func NewMiddleware(accessTokenSecretKey string, middlewareTokenRepo MiddlewareTokenRepo, middlewareUserRepo MiddlewareUserRepo) *Middleware
func (*Middleware) Authentication ¶
func (m *Middleware) Authentication() gin.HandlerFunc
func (*Middleware) Authorization ¶
func (m *Middleware) Authorization(roles []user.Role) gin.HandlerFunc
func (*Middleware) JsonMiddleware ¶
func (m *Middleware) JsonMiddleware() gin.HandlerFunc
type MiddlewareTokenRepo ¶
type MiddlewareUserRepo ¶
Click to show internal directories.
Click to hide internal directories.