Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheConfig ¶
type Config ¶
type Config struct { DB *DbConfig `json:"db" yaml:"db"` ReplicaDB *DbConfig `json:"replica_db" yaml:"replica_db"` Cache *CacheConfig `json:"cache" yaml:"cache"` }
type DbConfig ¶
type DbConfig struct { DriverName string `json:"driver_name" yaml:"driver_name" env:"DB_DRIVER_NAME" env-default:"postgres"` DB *sql.DB `validate:"required_without=DbHost"` Host string `` /* 220-byte string literal not displayed */ Port int `` /* 211-byte string literal not displayed */ Name string `` /* 207-byte string literal not displayed */ Username string `` /* 215-byte string literal not displayed */ Password string `` /* 215-byte string literal not displayed */ SslMode bool `` /* 215-byte string literal not displayed */ }
Click to show internal directories.
Click to hide internal directories.