Len returns the length of the batch.
()
| 30 | |
| 31 | // Len returns the length of the batch. |
| 32 | func (b *Batch) Len() int64 { return int64(len(b.Events)) } |
| 33 | |
| 34 | // MarshalJSON serializes the batch of events to JSON format. |
| 35 | func (b *Batch) MarshalJSON() []byte { |
no outgoing calls