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

Method ContainsMeta

pkg/event/event.go:304–311  ·  view source on GitHub ↗

ContainsMeta returns true if the metadata contains the specified key.

(k MetadataKey)

Source from the content-addressed store, hash-verified

302
303// ContainsMeta returns true if the metadata contains the specified key.
304func (e *Event) ContainsMeta(k MetadataKey) bool {
305 e.mmux.RLock()
306 defer e.mmux.RUnlock()
307 if e.Metadata == nil {
308 return false
309 }
310 return e.Metadata[k] != nil
311}
312
313// AddSequenceLink adds a new sequence link to the set.
314func (e *Event) AddSequenceLink(link any) {

Callers 5

AddOrAppendMetaSliceMethod · 0.95
AddSequenceLinkMethod · 0.95
runSequenceMethod · 0.80
TestSequenceOOOFunction · 0.80
TestScannerProcessEventFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestSequenceOOOFunction · 0.64
TestScannerProcessEventFunction · 0.64