ContainsMeta returns true if the metadata contains the specified key.
(k MetadataKey)
| 302 | |
| 303 | // ContainsMeta returns true if the metadata contains the specified key. |
| 304 | func (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. |
| 314 | func (e *Event) AddSequenceLink(link any) { |
no outgoing calls