From 6630763ff4d1d8070ec4fe394f6422a18f52353f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 24 May 2019 03:01:24 +0000 Subject: [PATCH] add a LOGIN type Signed-off-by: Jeff Carr --- events.pb.go | 68 +++++++++++++++++++++++++++------------------------ events.proto | 1 + sampleData.go | 10 ++++++++ 3 files changed, 47 insertions(+), 32 deletions(-) diff --git a/events.pb.go b/events.pb.go index 9241eea..4de307f 100644 --- a/events.pb.go +++ b/events.pb.go @@ -31,6 +31,7 @@ const ( Event_MIGRATE Event_EventType = 5 Event_DEMO Event_EventType = 6 Event_GET Event_EventType = 7 + Event_LOGIN Event_EventType = 8 ) var Event_EventType_name = map[int32]string{ @@ -42,6 +43,7 @@ var Event_EventType_name = map[int32]string{ 5: "MIGRATE", 6: "DEMO", 7: "GET", + 8: "LOGIN", } var Event_EventType_value = map[string]int32{ @@ -53,6 +55,7 @@ var Event_EventType_value = map[string]int32{ "MIGRATE": 5, "DEMO": 6, "GET": 7, + "LOGIN": 8, } func (x Event_EventType) String() string { @@ -430,37 +433,38 @@ func init() { func init() { proto.RegisterFile("events.proto", fileDescriptor_8f22242cb04491f9) } var fileDescriptor_8f22242cb04491f9 = []byte{ - // 511 bytes of a gzipped FileDescriptorProto + // 519 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0x4f, 0x6f, 0xd3, 0x30, - 0x14, 0x27, 0x49, 0xd3, 0x24, 0x6f, 0x63, 0x8a, 0x2c, 0x40, 0x56, 0xb6, 0x43, 0xb5, 0x0b, 0x3d, - 0x55, 0x68, 0x88, 0xdd, 0x07, 0xcd, 0x46, 0x25, 0xfa, 0x47, 0x56, 0x19, 0xc7, 0x29, 0x6d, 0xcd, - 0x08, 0x8d, 0x63, 0xcb, 0x76, 0x5a, 0xf5, 0xce, 0x27, 0xe0, 0x73, 0xf0, 0x49, 0xf8, 0x54, 0xc8, - 0x4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, 0x41, + 0x67, 0x90, 0x8c, 0xa7, 0x51, 0xd7, 0xfc, 0xeb, 0x30, 0x99, 0x47, 0x01, 0x0e, 0xc1, 0xbf, 0x9f, + 0x0e, 0x47, 0x93, 0x08, 0x2d, 0xba, 0xf6, 0x6b, 0x7e, 0xff, 0x27, 0x00, 0x00, 0xff, 0xff, 0x75, + 0x88, 0x00, 0xb1, 0xdd, 0x03, 0x00, 0x00, } diff --git a/events.proto b/events.proto index cecad77..29f3460 100644 --- a/events.proto +++ b/events.proto @@ -23,6 +23,7 @@ message Event { MIGRATE = 5; DEMO = 6; GET = 7; + LOGIN = 8; } message Response { diff --git a/sampleData.go b/sampleData.go index 93c0811..30b8600 100644 --- a/sampleData.go +++ b/sampleData.go @@ -68,3 +68,13 @@ func MakeGetEvent() *Event { e.Comment ="this should return a protobuf with all the VM's" return e } + +func MakeLoginEvent() *Event { + e := &Event{ + Id: 1234, + Name: "Login to get a Token", + Type: Event_LOGIN, + } + e.Comment ="this should return a protobuf with the token" + return e +}