Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module( "gormpostgresfx", fx.Provide( provideConfig, NewGorm, NewSQLDB, fx.Annotate( NewGormHealthChecker, fx.As(new(health.Health)), fx.ResultTags(fmt.Sprintf(`group:"%s"`, "healths")), ), ), )
Module provided to fxlog https://uber-go.github.io/fx/modules.html
Functions ¶
Types ¶
type GormOptions ¶
type GormOptions struct { Host string `mapstructure:"host"` Port int `mapstructure:"port"` User string `mapstructure:"user"` DBName string `mapstructure:"dbName"` SSLMode bool `mapstructure:"sslMode"` Password string `mapstructure:"password"` }
func (*GormOptions) Dns ¶
func (h *GormOptions) Dns() string
Click to show internal directories.
Click to hide internal directories.