(key string)
| 12 | type Metadata map[string]interface{} |
| 13 | |
| 14 | func (m *Metadata) get(key string) (val interface{}, ok bool) { |
| 15 | if *m == nil { |
| 16 | return nil, false |
| 17 | } |
| 18 | |
| 19 | val, ok = (*m)[key] |
| 20 | return |
| 21 | } |
| 22 | |
| 23 | // InputStats contains statistics about the input component, |
| 24 | // ready for export to the metric client and to print debug info. |