diff --git a/sampleData.go b/sampleData.go index 3a2ffe0..19281ac 100644 --- a/sampleData.go +++ b/sampleData.go @@ -25,3 +25,21 @@ func CreateSampleEvent() *Event { return e } + +func CreateSampleEvents(total int) []Event { + // TODO: flush this out to do all the fields + log.Println("CreateSampleEvent() is generating %d protobuf Events", total) + + var all []Event + + for i := 0; i < total; i++ { + e := CreateSampleEvent() + + e.Id += 1000 + int32(i) + e.Name = "jcarrEvent2" + + all = append(all, *e) + } + + return all +}