NewBatch produces a new batch from the group of events.
(evts ...*Event)
| 25 | |
| 26 | // NewBatch produces a new batch from the group of events. |
| 27 | func NewBatch(evts ...*Event) *Batch { |
| 28 | return &Batch{Events: evts} |
| 29 | } |
| 30 | |
| 31 | // Len returns the length of the batch. |
| 32 | func (b *Batch) Len() int64 { return int64(len(b.Events)) } |
no outgoing calls