X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=src%2Focaml%2Flib%2Fkhatus_msg.mli;fp=src%2Focaml%2Flib%2Fkhatus_msg.mli;h=7f89c2b2cac654701f208ad614743403ea716cba;hb=c6a7396ebc93cec32a1465d878ac9d36465dcb19;hp=0000000000000000000000000000000000000000;hpb=ba303714d7c911d460040c0eff82e5f5f4b2c2d3;p=khatus.git diff --git a/src/ocaml/lib/khatus_msg.mli b/src/ocaml/lib/khatus_msg.mli new file mode 100644 index 0000000..7f89c2b --- /dev/null +++ b/src/ocaml/lib/khatus_msg.mli @@ -0,0 +1,20 @@ +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} + +val to_string : t -> string + +val next_time : t -> node:string -> time:Khatus_time.t -> Khatus_time.t