diff options
| author | Estevan Castilho <tevo@riajuu.net> | 2026-07-15 01:52:38 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-14 22:52:38 -0300 |
| commit | c374635a36d71e8cfff6e1c19b62e5d0e14ea371 (patch) | |
| tree | 597fba69d4b39452eabab6299887282c1d7c6bc6 /lib/concepts/Configuration.mli | |
| parent | bb3156b8ab78b035ce886bbe3021ec7cbe269d03 (diff) | |
| download | RNT-c374635a36d71e8cfff6e1c19b62e5d0e14ea371.tar.gz RNT-c374635a36d71e8cfff6e1c19b62e5d0e14ea371.zip | |
Storage layer scaffolding, LMDB backend
Diffstat (limited to '')
| -rw-r--r-- | lib/concepts/Configuration.mli | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/concepts/Configuration.mli b/lib/concepts/Configuration.mli index 5e16ff9..d633f5c 100644 --- a/lib/concepts/Configuration.mli +++ b/lib/concepts/Configuration.mli @@ -1,2 +1,13 @@ -(** an abstract representation for a system configuration *) -type configuration +(** an abstract representation of a system configuration expression *) +type term + +val term_of_sexp : Sexplib.Sexp.t -> term +val tag_of : term -> (string, Condition.condition) result + +(** an abstract type associating strings to configuration values *) +type dictionary + +val value_for : string -> ?default:term -> dictionary -> (term, Condition.condition) result +val as_dictionary : term -> string -> (dictionary, Condition.condition) result +val as_int : term -> (int, Condition.condition) result +val as_string : term -> (string, Condition.condition) result |
