Make a sample set of protobufs
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
d8ee7baced
commit
e0efc237a4
|
@ -25,3 +25,21 @@ func CreateSampleEvent() *Event {
|
||||||
|
|
||||||
return e
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue