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