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

Method AddSequenceLink

pkg/event/event.go:314–325  ·  view source on GitHub ↗

AddSequenceLink adds a new sequence link to the set.

(link any)

Source from the content-addressed store, hash-verified

312
313// AddSequenceLink adds a new sequence link to the set.
314func (e *Event) AddSequenceLink(link any) {
315 if e.ContainsMeta(RuleSequenceLinks) {
316 links, ok := e.GetMeta(RuleSequenceLinks).(map[any]struct{})
317 if !ok {
318 return
319 }
320 links[link] = struct{}{}
321 e.AddMeta(RuleSequenceLinks, links)
322 } else {
323 e.AddMeta(RuleSequenceLinks, map[any]struct{}{link: {}})
324 }
325}
326
327// AppendParam adds a new parameter to this event.
328func (e *Event) AppendParam(name string, typ params.Type, value params.Value, opts ...ParamOption) {

Callers 2

evalBoundSequenceMethod · 0.95
evalSequenceMethod · 0.80

Calls 3

ContainsMetaMethod · 0.95
GetMetaMethod · 0.95
AddMetaMethod · 0.95

Tested by

no test coverage detected