|
@@ -19,7 +19,6 @@ type Service struct {
|
|
|
dbName string
|
|
|
dbUser string
|
|
|
dbPassword string
|
|
|
- dbSSLMode string
|
|
|
dbMaxOpenConns uint16
|
|
|
dbMaxIdleConns uint16
|
|
|
dbMaxOpenConnLifetime time.Duration
|
|
@@ -75,7 +74,6 @@ func Init() (*Service, error) {
|
|
|
DBName string `mapstructure:"DB_NAME"`
|
|
|
DBUser string `mapstructure:"DB_USER"`
|
|
|
DBPassword string `mapstructure:"DB_PASSWORD"`
|
|
|
- DBSSLMode string `mapstructure:"DB_SSL_MODE"`
|
|
|
DBMaxOpenConns uint16 `mapstructure:"DB_MAX_OPEN_CONNS"`
|
|
|
DBMaxIdleConns uint16 `mapstructure:"DB_MAX_IDLE_CONNS"`
|
|
|
DBMaxOpenConnLifetime time.Duration `mapstructure:"DB_MAX_OPEN_CONN_LIFETIME"`
|
|
@@ -118,7 +116,6 @@ func Init() (*Service, error) {
|
|
|
dbName: s.DBName,
|
|
|
dbUser: s.DBUser,
|
|
|
dbPassword: s.DBPassword,
|
|
|
- dbSSLMode: s.DBSSLMode,
|
|
|
dbMaxOpenConns: s.DBMaxOpenConns,
|
|
|
dbMaxIdleConns: s.DBMaxIdleConns,
|
|
|
dbMaxOpenConnLifetime: s.DBMaxOpenConnLifetime,
|
|
@@ -184,10 +181,6 @@ func (s Service) DBPassword() string {
|
|
|
return s.dbPassword
|
|
|
}
|
|
|
|
|
|
-func (s Service) DBSSLMode() string {
|
|
|
- return s.dbSSLMode
|
|
|
-}
|
|
|
-
|
|
|
func (s Service) DBMaxOpenConns() uint16 {
|
|
|
return s.dbMaxOpenConns
|
|
|
}
|