AddSequenceLink adds a new sequence link to the set.
(link any)
| 312 | |
| 313 | // AddSequenceLink adds a new sequence link to the set. |
| 314 | func (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. |
| 328 | func (e *Event) AppendParam(name string, typ params.Type, value params.Value, opts ...ParamOption) { |
no test coverage detected