config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0, BSD-2-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// viper
	NodeConfig *viper.Viper
)
View Source
var PLUGIN = node.NewPlugin("Config", node.Enabled, run)

define the plugin as a placeholder, so the init methods get executed accordingly

Functions

func Fetch

func Fetch(printConfig bool, ignoreSettingsAtPrint ...[]string) error

Fetch fetches config values from a dir defined via CLI flag --config-dir (or the current working dir if not set).

It automatically reads in a single config file starting with "config" (can be changed via the --config CLI flag) and ending with: .json, .toml, .yaml or .yml (in this sequence).

Types

This section is empty.

Jump to

Keyboard shortcuts

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