Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthHandlers ¶
Types ¶
type AuthHandlers ¶
type AuthHandlers struct {
Cfg *config.Config
Commands CommandBus
Queries QueryBus
Jwt *jwt.JWT
Logger logger.Logger
}
func (*AuthHandlers) Login ¶
func (a *AuthHandlers) Login(c echo.Context) error
Login godoc @Summary Login user @Description Login user handler @Tags Auth @Accept json @Produce json @Success 200 {object} entity.Token @Router /auth/login [post] TOFIX: refactor function
func (*AuthHandlers) Logout ¶
func (a *AuthHandlers) Logout(c echo.Context) error
func (*AuthHandlers) RefreshToken ¶
func (a *AuthHandlers) RefreshToken(c echo.Context) error
type CommandBus ¶
Click to show internal directories.
Click to hide internal directories.