Documentation
¶
Overview ¶
Package etc holds the project bootstrap configuration; it is commonly used for cluster configuration, service-component configuration and the like.
etc can only be configured through a configuration file and cannot be modified through the master management server. To use configuration in business code, prefer the config configuration center, whose data can be modified dynamically through the master management server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get returns the configuration value matching pattern, falling back to def when it is absent.
func GetConfigurator ¶ added in v2.1.0
func GetConfigurator() config.Configurator
GetConfigurator returns the configurator.
func SetConfigurator ¶ added in v2.1.0
func SetConfigurator(configurator config.Configurator)
SetConfigurator sets the configurator.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.