package
0.0.0-20220420091620-9a109683b971
Repository: https://github.com/dan-drl/framework.git
Documentation: pkg.go.dev
# Functions
LoadFile will load config from specify file.
LoadFiles will load configs from specify files.
MergeConfigs just merge configs together.
NewConfig create a pretty new config.
NewConfigFrom get config instance.
NewConfigWithYAML load config from yaml.
NewFlagConfig will use flags.
NewFlagOverwrite will use flags which specified.
# Structs
ClusterConfig stores cluster settings.
LoggingConfig object to store logging related settings.
Namespace storing at most one configuration section by name and sub-section.
NetworkConfig stores network settings.
NodeConfig stores node settings.
PathConfig stores path settings.
No description provided by the author
Rule is container of rules.
Rules defines two fields, Should means any of the rules matched will be work Must means some rule must match MustNot means some rule must not match.
SystemConfig is a high priority config, init from the environment or startup, can't be changed on the fly, need to restart to make config apply.
No description provided by the author
# Type aliases
Config object to store hierarchical configurations into.