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 ¶ added in v1.1.0
func NewEnvironment() *environment
NewEnvironment constructor reads/stores os.Environ() for use by environment receiver methods.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.