infra

package
v0.0.0-...-747ec1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAuthMiddleware

func InitAuthMiddleware(secret string)

func NeAuthRepository

func NeAuthRepository(db *gorm.DB) *authRepository

func NewAuthService

func NewAuthService(cfg config.Configuration) *authService

func Protected

func Protected() fiber.Handler

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) ToEntity

func (qm *UserMapper) ToEntity(model *model.User) *domain.Auth

func (*UserMapper) ToEntityList

func (qm *UserMapper) ToEntityList(models []model.User) []*domain.Auth

func (*UserMapper) ToEntityWithPassword

func (qm *UserMapper) ToEntityWithPassword(model *model.User) *domain.Auth

func (*UserMapper) ToModel

func (qm *UserMapper) ToModel(domain *domain.Auth) *model.User

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL