Documentation ¶
Index ¶
- func InitAuthMiddleware(secret string)
- func NeAuthRepository(db *gorm.DB) *authRepository
- func NewAuthService(cfg config.Configuration) *authService
- func Protected() fiber.Handler
- func ProvideAuthRepository(db *gorm.DB) domain.IAuthRepository
- func ProvideAuthService(cfg config.Configuration) domain.IAuthService
- type UserMapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAuthMiddleware ¶
func InitAuthMiddleware(secret string)
func NeAuthRepository ¶
func NewAuthService ¶
func NewAuthService(cfg config.Configuration) *authService
func ProvideAuthRepository ¶
func ProvideAuthRepository(db *gorm.DB) domain.IAuthRepository
func ProvideAuthService ¶
func ProvideAuthService(cfg config.Configuration) domain.IAuthService
Types ¶
type UserMapper ¶
type UserMapper struct{}
func NewUserMapper ¶
func NewUserMapper() *UserMapper
func (*UserMapper) ToEntityList ¶
func (qm *UserMapper) ToEntityList(models []model.User) []*domain.Auth
func (*UserMapper) ToEntityWithPassword ¶
func (qm *UserMapper) ToEntityWithPassword(model *model.User) *domain.Auth
Click to show internal directories.
Click to hide internal directories.