Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSetupHost = errors.New("setup host in database config") ErrSetupName = errors.New("setup name in database config") )
Functions ¶
Types ¶
type Config ¶
type Config struct { Name string User string `default:"postgres"` Password string `default:""` Host string Port string `default:"5432"` MaxOpenConns int `yaml:"max_open_conns" default:"0"` MaxIdleConns int `yaml:"max_idle_conns" default:"2"` ConnMaxLifetime time.Duration `yaml:"conn_max_lifetime" default:"1m"` Colorful bool DisableLogger bool Logger *zap.Logger }
Click to show internal directories.
Click to hide internal directories.