Private.ConfSourceBackend configuration.
A backend configuration is a set of keys mapping to typed values. Backends define their own keys.
A configuration converter transforms a string value to an OCaml value and vice-versa. There are a few built-in converters.
The type for configuration converter parsers.
The type for configuration keys whose lookup value is 'a.
val key :
?docs:string ->
?docv:string ->
?doc:string ->
string ->
'a converter ->
'a ->
'a keykey ~docs ~docv ~doc name conv default is a configuration key named name that maps to value default by default. conv is used to convert key values provided by end users.
docs is the title of a documentation section under which the key is documented. doc is a short documentation string for the key, this should be a single sentence or paragraph starting with a capital letter and ending with a dot. docv is a meta-variable for representing the values of the key (e.g. "BOOL" for a boolean).
Warning. No two keys should share the same name as this may lead to difficulties in the UI.
The type for configurations.
get c k is k's mapping in c.
Raises. Not_found if k is not bound in d.
uri converts values with Uri.of_string.