Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Claims ¶
type Claims struct { Email string `validate:"required,email" json:"email"` Id string Role string jwt.StandardClaims }
func VerifyToken ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(srv service) *Handler
type LoginRequest ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(userSvc UserService) *Service
Click to show internal directories.
Click to hide internal directories.