forked from ebhomengo/niki
25 lines
740 B
Go
25 lines
740 B
Go
package paymentapp
|
|
|
|
type PostgresConfig struct {
|
|
Host string `yaml:"host"`
|
|
Port int `yaml:"port"`
|
|
Driver string `yaml:"driver"`
|
|
User string `yaml:"user"`
|
|
Password string `yaml:"password"`
|
|
DbName string `yaml:"dbName"`
|
|
SSLMode string `yaml:"sslMode"`
|
|
MaxIdleConns int `yaml:"maxIdleConns"`
|
|
MaxOpenConns int `yaml:"maxOpenConns"`
|
|
ConnMaxLifetime int `yaml:"connMaxLifetime"`
|
|
PathOfMigrations string `yaml:"pathOfMigrations"`
|
|
}
|
|
|
|
type LoggerConfig struct {
|
|
Level string `yaml:"level" json:"level"`
|
|
}
|
|
|
|
type Config struct {
|
|
Postgres PostgresConfig `yaml:"postgres" json:"postgres"`
|
|
Logger LoggerConfig `yaml:"logger" json:"logger"`
|
|
}
|