SequenceLink returns the sequence link values from event metadata.
()
| 360 | |
| 361 | // SequenceLink returns the sequence link values from event metadata. |
| 362 | func (e *Event) SequenceLinks() []any { |
| 363 | e.mmux.RLock() |
| 364 | defer e.mmux.RUnlock() |
| 365 | links, ok := e.Metadata[RuleSequenceLinks].(map[any]struct{}) |
| 366 | if !ok { |
| 367 | return nil |
| 368 | } |
| 369 | s := make([]any, 0, len(links)) |
| 370 | for v := range links { |
| 371 | s = append(s, v) |
| 372 | } |
| 373 | return s |
| 374 | } |
no outgoing calls
no test coverage detected