repository

package
v0.0.0-...-543a005 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT, MIT Imports: 8 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 interface {
	Atomic(ctx context.Context, opt *sql.TxOptions, repo func(tx Repository) error) error

	GetUserByID(context.Context, int64, ...entities.LockingOpt) (entities.Users, error)
	GetUserByEmail(context.Context, string) (entities.Users, error)
	SaveNewUser(context.Context, entities.Users) (int64, error)
	UpdateUserByID(context.Context, entities.UpdateUsers) error
	UpdateUserStatusByID(context.Context, entities.UpdateUserStatus) error
	IsUserExist(ctx context.Context, email string) bool
}

func NewRepository

func NewRepository(c *sqlx.DB, l *zerolog.Logger) Repository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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