parent
c0b490b4fd
commit
d05e73a315
|
@ -12,7 +12,6 @@ func CreateSampleEvent() *Event {
|
||||||
|
|
||||||
e := &Event{
|
e := &Event{
|
||||||
Id: 1234,
|
Id: 1234,
|
||||||
Name: "Somekind of Event1",
|
|
||||||
Email: "test+protobuf@wit.com",
|
Email: "test+protobuf@wit.com",
|
||||||
Comment: "this is a sample event",
|
Comment: "this is a sample event",
|
||||||
Type: Event_MIGRATE,
|
Type: Event_MIGRATE,
|
||||||
|
@ -40,7 +39,7 @@ func CreateSampleEvents(total int) []Event {
|
||||||
e := CreateSampleEvent()
|
e := CreateSampleEvent()
|
||||||
|
|
||||||
e.Id += 1000 + int32(i)
|
e.Id += 1000 + int32(i)
|
||||||
e.Name = "Sample Event " + string(i)
|
e.Comment = "Sample Event " + string(i)
|
||||||
|
|
||||||
all = append(all, *e)
|
all = append(all, *e)
|
||||||
}
|
}
|
||||||
|
@ -60,9 +59,8 @@ func DumpEventData(myevent *Event) {
|
||||||
func MakeGetEvent() *Event {
|
func MakeGetEvent() *Event {
|
||||||
e := &Event{
|
e := &Event{
|
||||||
Id: 1234,
|
Id: 1234,
|
||||||
Name: "List all user VMs",
|
Comment: "List all user VMs",
|
||||||
Email: "test+protobuf@wit.com",
|
Email: "test+protobuf@wit.com",
|
||||||
Comment: "this should return a protobuf with all the VM's",
|
|
||||||
Type: Event_GET,
|
Type: Event_GET,
|
||||||
}
|
}
|
||||||
e.Comment ="this should return a protobuf with all the VM's"
|
e.Comment ="this should return a protobuf with all the VM's"
|
||||||
|
@ -72,7 +70,7 @@ func MakeGetEvent() *Event {
|
||||||
func MakeLoginEvent() *Event {
|
func MakeLoginEvent() *Event {
|
||||||
e := &Event{
|
e := &Event{
|
||||||
Id: 1234,
|
Id: 1234,
|
||||||
Name: "Login to get a Token",
|
Comment: "Login to get a Token",
|
||||||
Type: Event_LOGIN,
|
Type: Event_LOGIN,
|
||||||
}
|
}
|
||||||
e.Comment ="this should return a protobuf with the token"
|
e.Comment ="this should return a protobuf with the token"
|
||||||
|
|
Loading…
Reference in New Issue