ConfigZ v0.2.0 ConfigZ View Source
Runtime configuration for Elixir applications.
Link to this section Summary
Functions
Initialize the watcher
Read the config value
Watch the config, the callback function will be called whenever it is changed
Link to this section Types
Link to this section Functions
Initialize the watcher.
Arguments
:name
: Unique name of the watcher.:adapter
: Only supports:config_map
.:callbacks
: The map of config keys and callbacks.For
:config_map
adapter::dir
: The path of the directory that mounted config map volume.
Read the config value.
Watch the config, the callback function will be called whenever it is changed.