GetMeta returns the metadata for the given key.
(k MetadataKey)
| 292 | |
| 293 | // GetMeta returns the metadata for the given key. |
| 294 | func (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. |
| 304 | func (e *Event) ContainsMeta(k MetadataKey) bool { |
no outgoing calls