DopplerConfigProvider (doppler_config_provider v0.1.0) View Source
DopplerConfigProvider
fetches the config from Doppler and merges it with
your application config at system boot.
Link to this section Summary
Functions
Perform the request to doppler with the provided HTTP module.
Invoked when initializing the config provider.
Perform the JSON decoding with the provided JSON module.
Loads configuration (typically during system boot).
Link to this section Types
Specs
Specs
Specs
map_options()
Specs
Specs
options() :: [ service_token: service_token(), http_module: http_module(), json_module: json_module(), mappings: mappings() ]
Specs
service_token() :: String.t()
Link to this section Functions
fetch_doppler_config!(opts, url \\ "https://api.doppler.com/v3/configs/config/secrets/download")
View SourceSpecs
fetch_doppler_config!(map_options(), String.t()) :: map() | no_return()
Perform the request to doppler with the provided HTTP module.
Specs
Invoked when initializing the config provider.
A config provider is typically initialized on the machine where the system is
assembled and not on the target machine. The init/1
callback is useful to
verify the arguments given to the provider and prepare the state that will be
given to load/2
.
Specs
json_decode!(String.t(), map_options()) :: map() | no_return()
Perform the JSON decoding with the provided JSON module.
Loads configuration (typically during system boot).
Note that load/2
is typically invoked very early in the boot process.