database

package
v0.0.0-...-fe66388 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryUserRepository

type InMemoryUserRepository struct {
	// contains filtered or unexported fields
}

func NewInMemoryUserRepository

func NewInMemoryUserRepository() *InMemoryUserRepository

func (*InMemoryUserRepository) Delete

func (r *InMemoryUserRepository) Delete(id int) error

func (*InMemoryUserRepository) FindByDocumentNo

func (r *InMemoryUserRepository) FindByDocumentNo(documentNo string) (*domain.User, error)

func (*InMemoryUserRepository) FindByEmail

func (r *InMemoryUserRepository) FindByEmail(email string) (*domain.User, error)

func (*InMemoryUserRepository) FindByID

func (r *InMemoryUserRepository) FindByID(id int) (*domain.User, error)

func (*InMemoryUserRepository) Save

func (r *InMemoryUserRepository) Save(user *domain.User) error

func (*InMemoryUserRepository) Update

func (r *InMemoryUserRepository) Update(user *domain.User) error

type UserRepository

type UserRepository struct {
	DB *sql.DB
}

func (*UserRepository) GetUsers

func (ur *UserRepository) GetUsers() ([]domain.UserOutput, error)

Jump to

Keyboard shortcuts

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