From 809edb4c4898c0a94e33906f47f6a2777b6c191c Mon Sep 17 00:00:00 2001 From: pk910 Date: Mon, 14 Aug 2023 19:33:00 +0200 Subject: [PATCH] cleanup old database config types --- types/config.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/types/config.go b/types/config.go index ad1bc4dd..e2e135a6 100644 --- a/types/config.go +++ b/types/config.go @@ -86,25 +86,6 @@ type Config struct { MaxIdleConns int `yaml:"maxIdleConns" envconfig:"DATABASE_PGSQL_WRITER_MAX_IDLE_CONNS"` } `yaml:"pgsqlWriter"` } `yaml:"database"` - - ReaderDatabase struct { - Username string `yaml:"user" envconfig:"READER_DB_USERNAME"` - Password string `yaml:"password" envconfig:"READER_DB_PASSWORD"` - Name string `yaml:"name" envconfig:"READER_DB_NAME"` - Host string `yaml:"host" envconfig:"READER_DB_HOST"` - Port string `yaml:"port" envconfig:"READER_DB_PORT"` - MaxOpenConns int `yaml:"maxOpenConns" envconfig:"READER_DB_MAX_OPEN_CONNS"` - MaxIdleConns int `yaml:"maxIdleConns" envconfig:"READER_DB_MAX_IDLE_CONNS"` - } `yaml:"readerDatabase"` - WriterDatabase struct { - Username string `yaml:"user" envconfig:"WRITER_DB_USERNAME"` - Password string `yaml:"password" envconfig:"WRITER_DB_PASSWORD"` - Name string `yaml:"name" envconfig:"WRITER_DB_NAME"` - Host string `yaml:"host" envconfig:"WRITER_DB_HOST"` - Port string `yaml:"port" envconfig:"WRITER_DB_PORT"` - MaxOpenConns int `yaml:"maxOpenConns" envconfig:"WRITER_DB_MAX_OPEN_CONNS"` - MaxIdleConns int `yaml:"maxIdleConns" envconfig:"WRITER_DB_MAX_IDLE_CONNS"` - } `yaml:"writerDatabase"` } type SqliteDatabaseConfig struct {