Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Type, Charset, Database, TimeZone string
Host string
Port int32
User, Password string
Postgres PostgresConfig
Mysql MysqlConfig
Sqlite SqliteConfig
MaxIdleConns, MaxOpenConns int
ConnMaxLifetime, ConnMaxIdleTime time.Duration
Gorm gorm.Config
EnableStdLogger bool
Logger logger.Config
NamingStrategy schema.NamingStrategy
Prometheus PrometheusConfig
}
func (*Config) AfterInject ¶
func (c *Config) AfterInject()
func (*Config) BeforeInjectWithRoot ¶
func (c *Config) BeforeInjectWithRoot(conf *rootconf.RootConfig)
type MetricsCollectorConfig ¶ added in v0.9.9
type MysqlConfig ¶ added in v0.9.9
type PostgresConfig ¶ added in v0.9.9
type PrometheusConfig ¶ added in v0.9.9
type PrometheusConfig struct {
Enabled bool
prometheus.Config
MetricsCollectors []MetricsCollectorConfig
}
type SqliteConfig ¶ added in v0.9.9
type SqliteConfig struct {
DSN string
}
Click to show internal directories.
Click to hide internal directories.