Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DBHost string `env:"POSTGRES_HOST,required"` DBPort int `env:"POSTGRES_PORT,required"` DBUser string `env:"POSTGRES_USER,required"` DBPassword string `env:"POSTGRES_PASSWORD,required"` DBName string `env:"POSTGRES_NAME,required"` LoginWebhook string `env:"DISCORD_LOGIN_WEBHOOK,required"` RegisterWebhook string `env:"DISCORD_REGISTER_WEBHOOK,required"` SendGridKey string `env:"SENDGRID_API_KEY,required"` RMQUser string `env:"RMQ_USER,required"` RMQPassword string `env:"RMQ_PASSWORD,required"` RMQHost string `env:"RMQ_HOST,required"` TokenIssuerURL string `env:"TKN_ISSUER_URL,required"` }
Config contains the env variables needed to run the servers
func NewFromEnv ¶
Click to show internal directories.
Click to hide internal directories.