From ef4b6eb18bab3d76127313911e0730b013ad5aea Mon Sep 17 00:00:00 2001 From: Konstantin Munichev Date: Mon, 22 Nov 2021 15:35:53 +0100 Subject: [PATCH] [dlt] Proto for DLT records --- src/dlt/src/main/kotlin/proto/Config.proto | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/dlt/src/main/kotlin/proto/Config.proto b/src/dlt/src/main/kotlin/proto/Config.proto index fb5badf00..4345af482 100644 --- a/src/dlt/src/main/kotlin/proto/Config.proto +++ b/src/dlt/src/main/kotlin/proto/Config.proto @@ -14,4 +14,29 @@ message DltConfig { string caAdminSecret = 9; string msp = 10; string affiliation = 11; +} + +message DltRecordId { + string uuid = 1; +} + +enum DltRecordOperation { + ADD = 0; + GET = 1; + UPDATE = 2; + DISABLE = 3; +} + +enum DltRecordType { + UNKNOWN = 0; + SERVICE = 1; + DEVICE = 2; + SLICE = 3; +} + +message DltRecord { + DltRecordId id = 1; + DltRecordOperation operation = 2; + DltRecordType type = 3; + string json = 4; } \ No newline at end of file -- GitLab