postgres_repo

package
v0.0.0-...-0c44e78 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCustomerNotFound = errors.New("customer not found")
)
View Source
var (
	ErrDuplicateEntry = errors.New("duplicate entry")
)

Functions

func NewCustomerRepositoryImpl

func NewCustomerRepositoryImpl(db *gorm.DB) domain.CustomerRepository

NewCustomerRepositoryImpl returns new CustomerRepositoryImpl

func NewJwtAuthRepositoryImpl

func NewJwtAuthRepositoryImpl(db *gorm.DB) domain.JWTAuthRepository

Types

type CustomerCredentials

type CustomerCredentials struct {
	ID       uint64
	Active   bool
	Password string
}

Jump to

Keyboard shortcuts

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