config

package
v0.0.0-...-c8e7285 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UsrName               string `envconfig:"KDL_USER_NAME"`
	LogLevel              string `yaml:"logLevel" envconfig:"LOG_LEVEL"`
	ReposPath             string `yaml:"reposPath" envconfig:"REPOS_PATH"`
	InternalRepoBaseURL   string `yaml:"internalRepoBaseURL" envconfig:"INTERNAL_REPO_BASE_URL"`
	PemFile               string `yaml:"pemFile" envconfig:"PEM_FILE"`
	PemFilePassword       string `yaml:"pemFilePassword" envconfig:"PEM_FILE_PASSWORD"`
	CheckFrequencySeconds int    `yaml:"checkFrequencySeconds" envconfig:"CHECK_FREQUENCY_SECONDS"`
	MongoDB               struct {
		URI              string `yaml:"uri" envconfig:"KDL_SERVER_MONGODB_URI"`
		DBName           string `yaml:"dbName" envconfig:"DB_NAME"`
		ProjectsCollName string `yaml:"projectCollName" envconfig:"PROJECT_COLL_NAME"`
		UsersCollName    string `yaml:"userCollName" envconfig:"USER_COLL_NAME"`
	}
}

Config holds the configuration values of the application.

func NewConfig

func NewConfig() Config

NewConfig will read the config.yml file and override values with env vars.

Jump to

Keyboard shortcuts

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