Skip to content

v1.0.0

Compare
Choose a tag to compare
@actforgood actforgood released this 28 Aug 10:54
· 37 commits to main since this release

Initial release.

  • Loader contract
    • EnvLoader - loads environment variables
    • DotEnvFileLoader - loads configuration from a .env file
    • JSONFileLoader - loads json configuration from a file
    • JSONReaderLoader - loads json configuration from a io.Reader
    • YAMLFileLoader - loads yaml configuration from a file
    • YAMLReaderLoader - loads yaml configuration from a io.Reader
    • IniFileLoader - loads ini configuration from a file
    • PropertiesFileLoader - loads java style properties configuration from a file
    • PropertiesBytesLoader - loads java style properties configuration from a bytes slice
    • ConsulLoader - loads json/yaml/plain configuration from a remote Consul KV Store
    • EtcdLoader - loads json/yaml/plain configuration from a remote Etcd KV Store
    • PlainLoader - explicit configuration provider
    • MultiLoader - loads (and merges, if configured) configuration from multiple loaders
    • FilterKVLoader - filters other loader's configurations (based on keys and / or their values)
    • AlterValueLoader - changes the value for a configuration key
    • IgnoreErrorLoader - ignores the error returned by another loader
    • FileCacheLoader - caches configuration from a [X]FileLoader
    • FlattenLoader - creates easy to access nested configuration leaf keys symlinks
    • AliasLoader - creates aliases for other keys.
  • Config contract
    • DefaultConfig
      • uses a Loader to retrieve configurations
      • can be enabled to reload configurations interval based, and observers can be notified of changes
    • MockConfig for UT
    • NopConfig - no-operation config
  • LogLevelProvider - adapter for getting log level for a xlog logger from a Config