user_psql

package
v0.0.0-...-372bfc1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserPSQLRepository

func NewUserPSQLRepository(ConnectionPool *pgx.ConnPool, Cache *cache.Cache) user.Repository

Types

type UserPSQL

type UserPSQL struct {
	Conn  *pgx.ConnPool
	Cache *cache.Cache
}

func (*UserPSQL) Create

func (userRep *UserPSQL) Create(user *model.User) error

func (*UserPSQL) Find

func (u *UserPSQL) Find(nickname string, email string) ([]model.User, error)

func (*UserPSQL) FindByNickname

func (userRep *UserPSQL) FindByNickname(nickname string) (*model.User, error)

func (*UserPSQL) Update

func (u *UserPSQL) Update(user *model.User) (*model.User, error)

Jump to

Keyboard shortcuts

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