env

package
v0.0.0-...-4a3359c Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProjectDirectory, _ = os.Getwd()
	Environment         = os.Getenv("ENV")
	Host                = os.Getenv("HOST")
	HostName            = os.Getenv("HOSTNAME")
	ServiceConfigPath   = os.Getenv("CONFIG_PATH")
)

Functions

func InitEnvironment

func InitEnvironment()

Types

type ServiceConfig

type ServiceConfig struct {
	Common   config.CommonConfig    `yaml:"commonConfig"`
	Security config.SecurityConfig  `yaml:"securityConfig"`
	Auth     config.AuthConfig      `yaml:"authConfig"`
	Mongo    config.DataStoreConfig `yaml:"mongoConfig"`
	Postgres config.DataStoreConfig `yaml:"postgresConfig"`
	Redis    config.DataStoreConfig `yaml:"redisConfig"`
}

func ReadServiceConfig

func ReadServiceConfig(filename string) (sc ServiceConfig, err error)

Jump to

Keyboard shortcuts

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