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

Method GetMeta

pkg/event/event.go:294–301  ·  view source on GitHub ↗

GetMeta returns the metadata for the given key.

(k MetadataKey)

Source from the content-addressed store, hash-verified

292
293// GetMeta returns the metadata for the given key.
294func (e *Event) GetMeta(k MetadataKey) any {
295 e.mmux.RLock()
296 defer e.mmux.RUnlock()
297 if e.Metadata == nil {
298 return ""
299 }
300 return e.Metadata[k]
301}
302
303// ContainsMeta returns true if the metadata contains the specified key.
304func (e *Event) ContainsMeta(k MetadataKey) bool {

Callers 4

AddOrAppendMetaSliceMethod · 0.95
AddSequenceLinkMethod · 0.95
TestScannerProcessEventFunction · 0.80
containsEvasionFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestScannerProcessEventFunction · 0.64
containsEvasionFunction · 0.64