move plugin interfaces into separate package

This commit is contained in:
David Norton
2016-12-23 10:18:27 -05:00
parent 3e6c4a53a4
commit 81caa56859
182 changed files with 817 additions and 817 deletions

View File

@@ -3,7 +3,7 @@ package printer
import (
"fmt"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins"
"github.com/influxdata/telegraf/plugins/processors"
)
@@ -21,7 +21,7 @@ func (p *Printer) Description() string {
return "Print all metrics that pass through this filter."
}
func (p *Printer) Apply(in ...telegraf.Metric) []telegraf.Metric {
func (p *Printer) Apply(in ...plugins.Metric) []plugins.Metric {
for _, metric := range in {
fmt.Println(metric.String())
}
@@ -29,7 +29,7 @@ func (p *Printer) Apply(in ...telegraf.Metric) []telegraf.Metric {
}
func init() {
processors.Add("printer", func() telegraf.Processor {
processors.Add("printer", func() plugins.Processor {
return &Printer{}
})
}