RemoveMeta removes the event metadata index by given key.
(k MetadataKey)
| 268 | |
| 269 | // RemoveMeta removes the event metadata index by given key. |
| 270 | func (e *Event) RemoveMeta(k MetadataKey) { |
| 271 | e.mmux.Lock() |
| 272 | defer e.mmux.Unlock() |
| 273 | if e.Metadata != nil { |
| 274 | delete(e.Metadata, k) |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | // GetMetaAsString returns the metadata as a string value. |
| 279 | func (e *Event) GetMetaAsString(k MetadataKey) string { |
no test coverage detected