config

package
v0.0.3-reply Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RegistryClient registry.Client
)

Functions

func ListenForConfigChanges

func ListenForConfigChanges()

func LoadConfig

func LoadConfig(useRegistry string, profile string, confDir string) (configuration *common.Config, err error)

LoadConfig loads the local configuration file based upon the specified parameters and returns a pointer to the global Config struct which holds all of the local configuration settings for the DS. The string useRegistry indicates whether the registry should be used to read config settings, and it might contain the registry path. This also controls whether the service registers itself the registry. The profile and confDir are used to locate the local TOML config file.

func NewEnvironment

func NewEnvironment() *environment

NewEnvironment constructor reads/stores os.Environ() for use by environment receiver methods.

Types

This section is empty.

Jump to

Keyboard shortcuts

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