diff options
| author | Daniil Baturin <daniil@baturin.org> | 2015-09-28 20:51:58 +0600 |
|---|---|---|
| committer | Daniil Baturin <daniil@baturin.org> | 2015-09-28 20:51:58 +0600 |
| commit | f50401c6bdfb205f34de3d04949fbaf3cd6876f8 (patch) | |
| tree | 366052a359ba710bfe4696a33f85eba8c4b166c5 /src/message.ml | |
| parent | a4f204cf23f56661af2577e070bba9d9ec678343 (diff) | |
| download | vyconf-f50401c6bdfb205f34de3d04949fbaf3cd6876f8.tar.gz vyconf-f50401c6bdfb205f34de3d04949fbaf3cd6876f8.zip | |
Add types and derivers for the message decoder.
Diffstat (limited to 'src/message.ml')
| -rw-r--r-- | src/message.ml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/message.ml b/src/message.ml new file mode 100644 index 0000000..8f37c08 --- /dev/null +++ b/src/message.ml @@ -0,0 +1,11 @@ +type operation = { + method_name: string; + path: string list option; + value: string option; + options: (string * string) list option +} [@@deriving yojson] + +type message = { + session_id: string; + ops: operation list; +} [@@deriving yojson] |
