configs

package
v0.0.0-...-9058691 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvVar

func GetEnvVar(key string) string

func TLSConfig

func TLSConfig(certPath, keyPath string)

Types

type Configuration

type Configuration struct {
	AppPort    string `env:"APP_PORT" envDefault:"8080"`
	HashSalt   string `env:"HASH_SALT,required"`
	SigningKey string `env:"SIGNING_KEY,required"`
	JwtSecret  string `env:"JWT_SECRET,required"`
	HttpsMode  bool   `env:"HTTPS_MODE" envDefault:"false"`

	DatabaseConnectionURL string `env:"PG_CONNECTION,required"`

	RedisURI      string `env:"REDIS_URI,required"`
	RedisPassword string `env:"REDIS_PASSWORD,required"`

	MailHost     string `env:"MAIL_HOST,required"`
	MailUser     string `env:"MAIL_USER,required"`
	MailPassword string `env:"MAIL_PASSWORD,required"`

	MinIOAccessKey string `env:"MINIO_ACCESS,required"`
	MinIOSecretKey string `env:"MINIO_SECRET,required"`
	MinIOEndpoint  string `env:"MINIO_ENDPOINT,required"`
	MinIOBucket    string `env:"APP_NAME,required"`

	RmqURI string `env:"RMQ_URI,required"`
}

func LoadConfigs

func LoadConfigs(files ...string) *Configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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