diff options
| author | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-05-21 18:46:27 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-05-21 18:46:27 +0200 |
| commit | ceffa15763fe3f61621beb7fd400bc43d2aadc9e (patch) | |
| tree | bb434b1cc650659303a23f878efbe0f2907fbc41 /config.go | |
| parent | 642025681befa35f67cc7c25383eb782ac01feac (diff) | |
feat(db): disable redis and use local map to store values
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -9,10 +9,9 @@ import ( ) type Config struct { - Debug bool `toml:"debug"` - Author string `toml:"author"` - Redis *gokord.RedisCredentials `toml:"redis"` - Database *PostgresConfig `toml:"database"` + Debug bool `toml:"debug"` + Author string `toml:"author"` + Database *PostgresConfig `toml:"database"` } type PostgresConfig struct { @@ -55,14 +54,12 @@ func (c *Config) GetAuthor() string { } func (c *Config) GetRedisCredentials() *gokord.RedisCredentials { - return c.Redis + return nil } func (c *Config) SetDefaultValues() { c.Debug = false c.Author = "anhgelus" - c.Redis = &gokord.RedisCredentials{} - c.Redis.SetDefaultValues() c.Database = &PostgresConfig{} c.Database.SetDefaultValues() } |
