MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / NewBatch

Function NewBatch

pkg/event/batch.go:27–29  ·  view source on GitHub ↗

NewBatch produces a new batch from the group of events.

(evts ...*Event)

Source from the content-addressed store, hash-verified

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

Callers 7

StopMethod · 0.92
runMethod · 0.92
getBatchFunction · 0.92
getBatchFunction · 0.92
getBatchFunction · 0.92
getBatchFunction · 0.92
TestBatchMarshalJSONFunction · 0.85

Calls

no outgoing calls

Tested by 5

getBatchFunction · 0.74
getBatchFunction · 0.74
getBatchFunction · 0.74
getBatchFunction · 0.74
TestBatchMarshalJSONFunction · 0.68