Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(NewUserRepository), fx.Provide(NewDatabase), )
Module exports dependency
Functions ¶
Types ¶
type UserRepository ¶
type UserRepository struct {
*Database
}
UserRepository database structure
func NewUserRepository ¶
func NewUserRepository(db *Database) *UserRepository
NewUserRepository creates a new user repository
func (*UserRepository) WithTx ¶
func (r *UserRepository) WithTx(txHandle *gorm.DB) *UserRepository
WithTx enables repository with transaction
Click to show internal directories.
Click to hide internal directories.