From b5cb16b14fbddae551d2162766d6a62b3f05aa45 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 10 May 2019 11:57:24 -0700 Subject: [PATCH] add a result. maybe this should be called 'response' Signed-off-by: Jeff Carr --- events.proto | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/events.proto b/events.proto index 510ab72..9c1c8a4 100644 --- a/events.proto +++ b/events.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package witProto; +package witProtobuf; enum EventType { ADD = 0; @@ -10,15 +10,20 @@ enum EventType { MIGRATE = 5; } -message Event { - EventType type = 1; - string label = 2; - int32 id = 3; - repeated int64 reps = 4; -} message Result { - string url = 1; - string title = 2; + string name = 1; + string error = 2; repeated string snippets = 3; } + +message Event { + EventType type = 1; + int32 id = 2; + Result result = 3; + string name = 4; + + string comment = 5; + string email = 6; + repeated int64 reps = 7; +}