config

package
v0.0.0-...-53ff618 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 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 {
	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"`
	}
	UsrName               string `envconfig:"KDL_USER_NAME"`
	ReposPath             string `yaml:"reposPath" envconfig:"REPOS_PATH"`
	PemFile               string `yaml:"pemFile" envconfig:"PEM_FILE"`
	PemFilePassword       string `yaml:"pemFilePassword" envconfig:"PEM_FILE_PASSWORD"`
	CheckFrequencySeconds int    `yaml:"checkFrequencySeconds" envconfig:"CHECK_FREQUENCY_SECONDS"`
}

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