Documentation
¶
Index ¶
Constants ¶
View Source
const (
)Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) GenerateToken ¶
func (*Auth) ValidateToken ¶
func (auth *Auth) ValidateToken(role entities.Role) gin.HandlerFunc
ValidateToken validates a token for a specific role and sets ID and Email in context
Click to show internal directories.
Click to hide internal directories.