summaryrefslogtreecommitdiff
path: root/src/message.mli
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2017-01-07 23:09:19 +0700
committerDaniil Baturin <daniil@baturin.org>2017-01-07 23:09:19 +0700
commitb3afc59cfef4637dee41a595485559ff1e04193c (patch)
treee0579d08a6bc083b914b1d23cecfa8722d35bd9a /src/message.mli
parent64503e857d6e13a4af10f2d083ffa3ad95e753bd (diff)
downloadvyconf-b3afc59cfef4637dee41a595485559ff1e04193c.tar.gz
vyconf-b3afc59cfef4637dee41a595485559ff1e04193c.zip
Remove the old message library that will be replaced with the Protobuf one.
Diffstat (limited to 'src/message.mli')
-rw-r--r--src/message.mli38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/message.mli b/src/message.mli
deleted file mode 100644
index 306afb7..0000000
--- a/src/message.mli
+++ /dev/null
@@ -1,38 +0,0 @@
-exception Invalid_operation of string
-exception Invalid_message of string
-
-type operation =
- | Set of string list
- | Delete of string list
- | Show of (string list option) * ((string * string) list option)
- | GetValues of string list
- | Commit
-
-type request = {
- session_id: string;
- operations: operation list
-}
-
-type response = {
- errors: string list;
- warnings: string list;
- data: string list
-}
-
-type raw_operation = {
- method_name: string;
- path: string list option;
- options: (string * string) list option
-}
-
-type raw_request = {
- raw_session_id: string;
- raw_operations: raw_operation list
-}
-
-val encode_request : request -> Yojson.Safe.json
-val decode_request : Yojson.Safe.json -> request
-
-val encode_response : response -> Yojson.Safe.json
-val decode_response : Yojson.Safe.json -> response
-