userrepo

package
v0.0.0-...-932a008 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	DB *sql.DB
}

Repository implements the UserRepository interface for the User model.

func New

func New(db *sql.DB) Repository

func (Repository) User

func (us Repository) User(id uuid.UUID) (models.User, error)

func (Repository) UserDelete

func (us Repository) UserDelete(usr models.User) error

func (Repository) UserSave

func (us Repository) UserSave(usr models.User) (models.User, error)

func (Repository) Users

func (us Repository) Users() ([]models.User, error)

Jump to

Keyboard shortcuts

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