parent
5c89e3eb18
commit
ea6ee3f76a
44
events.pb.go
44
events.pb.go
|
@ -27,7 +27,7 @@ const (
|
|||
Event_DELETE Event_EventType = 1
|
||||
Event_POWERON Event_EventType = 2
|
||||
Event_POWEROFF Event_EventType = 3
|
||||
Event_HYBERNATE Event_EventType = 4
|
||||
Event_HIBERNATE Event_EventType = 4
|
||||
Event_MIGRATE Event_EventType = 5
|
||||
)
|
||||
|
||||
|
@ -36,7 +36,7 @@ var Event_EventType_name = map[int32]string{
|
|||
1: "DELETE",
|
||||
2: "POWERON",
|
||||
3: "POWEROFF",
|
||||
4: "HYBERNATE",
|
||||
4: "HIBERNATE",
|
||||
5: "MIGRATE",
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,7 @@ var Event_EventType_value = map[string]int32{
|
|||
"DELETE": 1,
|
||||
"POWERON": 2,
|
||||
"POWEROFF": 3,
|
||||
"HYBERNATE": 4,
|
||||
"HIBERNATE": 4,
|
||||
"MIGRATE": 5,
|
||||
}
|
||||
|
||||
|
@ -224,25 +224,25 @@ func init() {
|
|||
func init() { proto.RegisterFile("events.proto", fileDescriptor_8f22242cb04491f9) }
|
||||
|
||||
var fileDescriptor_8f22242cb04491f9 = []byte{
|
||||
// 310 bytes of a gzipped FileDescriptorProto
|
||||
// 309 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x91, 0xc1, 0x6a, 0xf2, 0x40,
|
||||
0x10, 0xc7, 0xbf, 0x64, 0x13, 0x63, 0x46, 0x3f, 0x09, 0x43, 0x0f, 0x8b, 0xed, 0x21, 0x78, 0xca,
|
||||
0x49, 0x8a, 0xa5, 0x0f, 0x60, 0x71, 0x6d, 0x0b, 0xad, 0xca, 0x12, 0x90, 0x1e, 0xb5, 0x4e, 0x21,
|
||||
0x60, 0x92, 0x25, 0xbb, 0xb6, 0xf8, 0x1a, 0x7d, 0xa8, 0x3e, 0x57, 0xc9,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, 0x3c, 0x5a, 0x43, 0x78, 0x5a,
|
||||
0x84, 0x01, 0xb0, 0xe9, 0x6c, 0x16, 0xfd, 0x43, 0x80, 0xce, 0x4c, 0x3c, 0x89, 0x54, 0x44, 0x0e,
|
||||
0xf6, 0x20, 0x58, 0x2d, 0xd7, 0x42, 0x2e, 0x17, 0x91, 0x8b, 0x7d, 0xe8, 0x36, 0x30, 0x9f, 0x47,
|
||||
0x0c, 0xff, 0x43, 0xf8, 0xf0, 0x72, 0x27, 0xe4, 0x62, 0x9a, 0x8a, 0xc8, 0xab, 0xcd, 0xe7, 0xc7,
|
||||
0x7b, 0x59, 0x83, 0xbf, 0xed, 0xd8, 0xcf, 0xbd, 0xf9, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x7d, 0x92,
|
||||
0x48, 0xe1, 0xec, 0x01, 0x00, 0x00,
|
||||
0x49, 0x8a, 0xa5, 0x0f, 0x60, 0x71, 0x6d, 0x85, 0x56, 0x65, 0x09, 0x78, 0xd6, 0x3a, 0x85, 0x80,
|
||||
0x49, 0x96, 0xec, 0xda, 0xe2, 0x6b, 0xf4, 0xa1, 0xfa, 0x5c, 0x25, 0x9b, 0x46, 0x3c, 0xf4, 0xd8,
|
||||
0xcb, 0x32, 0xbf, 0xd9, 0x1f, 0x33, 0xff, 0x65, 0xa1, 0x4f, 0xef, 0x54, 0x18, 0x3d, 0x56, 0x55,
|
||||
0x69, 0x4a, 0xec, 0x7d, 0x64, 0x66, 0x5d, 0x57, 0xbb, 0xe3, 0xdb, 0xe8, 0x8b, 0x81, 0x2f, 0xea,
|
||||
0x5b, 0xbc, 0x05, 0xcf, 0x9c, 0x14, 0x71, 0x27, 0x76, 0x92, 0xc1, 0xe4, 0x66, 0x7c, 0x61, 0x8d,
|
||||
0xad, 0xd1, 0x9c, 0xe9, 0x49, 0x91, 0xb4, 0x26, 0x0e, 0xc0, 0xcd, 0xf6, 0xdc, 0x8d, 0x9d, 0xc4,
|
||||
0x97, 0x6e, 0xb6, 0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, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ message Event {
|
|||
DELETE = 1;
|
||||
POWERON = 2;
|
||||
POWEROFF = 3;
|
||||
HYBERNATE = 4;
|
||||
HIBERNATE = 4;
|
||||
MIGRATE = 5;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ func CreateSampleEvent() *Event {
|
|||
Name: "Somekind of Event1",
|
||||
Email: "test+protobuf@wit.com",
|
||||
Comment: "this is a sample event",
|
||||
Type: Event_MIGRATE,
|
||||
Results: []*Event_Response{
|
||||
{Name: "fooadd", Type: Event_ADD},
|
||||
{Name: "foodelete", Type: Event_DELETE},
|
||||
|
@ -47,3 +48,12 @@ func CreateSampleEvents(total int) []Event {
|
|||
|
||||
return all
|
||||
}
|
||||
|
||||
func DumpEventData(myevent *Event) {
|
||||
log.Println("Received Event name=", myevent)
|
||||
log.Println("Displaying the Event_Results:")
|
||||
msgItems := myevent.GetResults()
|
||||
for _, item := range msgItems {
|
||||
log.Println("\t", item)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue