config

package
v0.0.0-...-335761d Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	// cache
	CacheLocation string `env:"CACHE_LOCATION"`

	Port    string `env:"API_PORT"`
	IsDebug bool   `env:"IS_DEBUG"`

	EmailDomain string `env:"EMAIL_DOMAIN"`

	ApiKey string `env:"API_KEY"`

	// // default database
	DatabaseName     string `env:"DATABASE_NAME"`
	DatabasePassword string `env:"DATABASE_PASSWORD"`
	DatabaseUser     string `env:"DATABASE_USER"`
	DatabaseHost     string `env:"DATABASE_HOST"`
	DatabasePort     string `env:"DATABASE_PORT"`

	IsSentryActivated bool   `env:"ACTIVATE_SENTRY"`
	SentryKey         string `env:"SENTRY_KEY"`
	SentryUrl         string `env:"SENTRY_URL"`
	SentryEnvironment string `env:"SENTRY_ENVIRONMENT"`
}

func GetInstance

func GetInstance() *AppConfig

Jump to

Keyboard shortcuts

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