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
UseGormLogger bool
Logger logger.Config
NamingStrategy schema.NamingStrategy
Prometheus PrometheusConfig
}
func (*Config) AfterInject ¶
func (c *Config) AfterInject()
func (*Config) BeforeInjectWithRoot ¶
func (c *Config) BeforeInjectWithRoot(conf *initialize.RootConfig)
type MetricsCollectorConfig ¶
type MysqlConfig ¶
type PostgresConfig ¶
type PrometheusConfig ¶
type PrometheusConfig struct {
Enabled bool
prometheus.Config
MetricsCollectors []MetricsCollectorConfig
}
type SqliteConfig ¶
type SqliteConfig struct {
DSN string
}
Click to show internal directories.
Click to hide internal directories.