Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *gorm.DB, rdb *redis.Client, logger *log.Logger) *Repository
func (*Repository) Transaction ¶
type Transaction ¶
type Transaction interface {
Transaction(ctx context.Context, fn func(ctx context.Context) error) error
}
func NewTransaction ¶
func NewTransaction(r *Repository) Transaction
Click to show internal directories.
Click to hide internal directories.