repository

package
v0.0.0-...-f3df126 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresRepository

func NewPostgresRepository(ctx context.Context, db *sqlx.DB, log *zerolog.Logger) *postgresRepository

Types

type UserRepository

type UserRepository interface {
	CreateUser(ctx context.Context, user *models.User) error
	UpdateUser(ctx context.Context, user *models.User) error
	UpdatePassword(ctx context.Context, userId string, password string) (*models.User, error)
	GetUserByIDorEmail(ctx context.Context, idOrEmail string) (*models.User, error)
	CheckUserNameExist(ctx context.Context, username string) (bool, error)
}

Jump to

Keyboard shortcuts

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