repository

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: 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

	SaveNewUser(context.Context, entities.Users) (int64, error)
	UpdateUserByID(context.Context, entities.UpdateUsers) error
	GetUserByID(context.Context, int64, ...entities.LockingOpt) (entities.Users, error)
	UpdateUserStatusByID(context.Context, entities.UpdateUserStatus) error
}

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