watch Git
Returns a child config containing values from a specified git repository, and reloads values periodically.
Format of the url is auto-detected from the url extension. Supported url formats and the corresponding extensions:
HOCON: conf
JSON: json
Properties: properties
TOML: toml
XML: xml
YAML: yml, yaml
Throws UnsupportedExtensionException if the url extension is unsupported.
Return
a child config containing values from a specified git repository
Parameters
git repository
file in the git repository
local directory of the git repository
the initial branch
reload period. The default value is 1.
time unit of reload period. The default value is TimeUnit.MINUTES.
context of the coroutine. The default value is Dispatchers.Default.
whether the source is optional
function invoked after the updated git file is loaded
Throws
Returns a child config containing values from a specified git repository, and reloads values periodically.
Return
a child config containing values from a specified git repository
Parameters
git repository
file in the git repository
local directory of the git repository
the initial branch
reload period. The default value is 1.
time unit of reload period. The default value is TimeUnit.MINUTES.
context of the coroutine. The default value is Dispatchers.Default.
whether the source is optional
function invoked after the updated git file is loaded