Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("data", fx.Provide( fx.Annotate( func(cfg *config.AppConfig) *config.DatabaseConfig { return &cfg.Database }, fx.As(new(*config.DatabaseConfig)), ), ProvideDatabase, ), )
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func ProvideDatabase ¶
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func NewUserRepo ¶
func (*UserRepo) CreateUser ¶
Click to show internal directories.
Click to hide internal directories.