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
Click to show internal directories.
Click to hide internal directories.