Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PostgresConfig struct { DB string User string Password string Host string Port int TLS bool Timezone string GormDSN string } RedisConfig struct { Host string Port int User string Password string } HTTPConfig struct { HTTPAddr string } // ChainConfig is hardncoded for now ChainConfig struct { // Worth is the value of coins per mb Worth float64 // InitialCoins is the number of coins initially given to the user while registration InitialCoins float64 } // Database holds a gorm.DB instance for access with the handler Database *gorm.DB // Redis holds the global redis pool and connection Redis *redis.Client }
Config holds the structure for the application config
func (*Config) LoadConfig ¶
func (c *Config) LoadConfig()
LoadConfig loads the config from the environment file
Click to show internal directories.
Click to hide internal directories.