Improve overview and experiment naming
[khatus.git] / x3 / src / lib / khatus_msg.mli
diff --git a/x3/src/lib/khatus_msg.mli b/x3/src/lib/khatus_msg.mli
new file mode 100644 (file)
index 0000000..358d0ed
--- /dev/null
@@ -0,0 +1,23 @@
+type content =
+  | Alert of {priority : [`low | `med | `hi]; subject : string; body : string}
+  | Data of {key : string list; value : string}
+  | Cache of
+      { mtime : Khatus_time.t
+      ; node  : string
+      ; modul : string
+      ; key   : string list
+      ; value : string
+      }
+  | Error of string
+  | Log of {location : string; level : [`info | `error]; msg : string}
+  | Status_bar of string
+
+type t =
+  {node : string; modul : string; content : content}
+
+type 'a data_handler =
+  (node:string -> modul:string -> key:string list -> value:string -> 'a)
+
+val to_string : t -> string
+
+val handle_data : t -> f:'a data_handler -> otherwise:'a -> 'a
This page took 0.024658 seconds and 4 git commands to generate.