config

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Values

type Values struct {
	Git      git.Config
	Language string
	LogLevel string
	Name     string
	Port     string
	Ruby     ruby.Config
	Scala    scala.Config
	Webhook  webhook.Config
	NPM      npm.Config
}

Values represents the config values needed by the entire application. In addition to top level values like Language and LogLevel, it has nested config structs for each of the sub-packages like Git, and all the languages supported.

func Read

func Read(configFilePath string) (*Values, error)

Read will bring in config values from a YAML file at the passed filepath. It will then attempt to read config values from the environment. Any environment variables that are not zero-value will override any values from the YAML file.

Jump to

Keyboard shortcuts

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