config

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "development"

Functions

func GetConfig

func GetConfig()

func InitLogging

func InitLogging()

Types

type APIConfig

type APIConfig struct {
	Port        int    `mapstructure:"API_PORT"`
	JWTKey      string `mapstructure:"JWT_PRIVATE_KEY"`
	LogLevel    int    `mapstructure:"LOG_LEVEL"`
	ASCIIWidth  int    `mapstructure:"ASCII_WIDTH"`
	ASCIIHeight int    `mapstructure:"ASCII_HEIGHT"`
	FrontendURL string `mapstructure:"FRONTEND_URL"`
}
var ApiConfig APIConfig

type DBConfig

type DBConfig struct {
	User     string `mapstructure:"POSTGRES_USER"`
	Password string `mapstructure:"POSTGRES_PASSWORD"`
	Db       string `mapstructure:"POSTGRES_DB"`
	Host     string `mapstructure:"POSTGRES_HOST"`
	Port     string `mapstructure:"POSTGRES_PORT"`
}
var Database DBConfig

type MongoDBConfig

type MongoDBConfig struct {
	Host     string `mapstructure:"MONGO_HOST"`
	Port     string `mapstructure:"MONGO_PORT"`
	User     string `mapstructure:"MONGO_USERNAME"`
	Password string `mapstructure:"MONGO_PASSWORD"`
}
var MongoDB MongoDBConfig

type SMTPConfig added in v1.0.2

type SMTPConfig struct {
	Host     string `mapstructure:"SMTP_HOST"`
	Port     string `mapstructure:"SMTP_PORT"`
	User     string `mapstructure:"SMTP_USERNAME"`
	Password string `mapstructure:"SMTP_PASSWORD"`
}
var SMTP SMTPConfig

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL