(parser telegraf.Parser)
| 163 | } |
| 164 | |
| 165 | func (p *Plugin) SetParser(parser telegraf.Parser) { |
| 166 | p.Parser = parser |
| 167 | if len(p.DefaultTags) > 0 { |
| 168 | p.Parser.SetDefaultTags(p.DefaultTags) |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | // Register the plugin |
| 173 | func init() { |
nothing calls this directly
no test coverage detected