telegraf/plugins/aggregators/registry.go

12 lines
215 B
Go
Raw Permalink Normal View History

package aggregators
import "github.com/influxdata/telegraf"
type Creator func() telegraf.Aggregator
var Aggregators = map[string]Creator{}
func Add(name string, creator Creator) {
Aggregators[name] = creator
}