telegraf/plugins/inputs/registry.go

12 lines
195 B
Go
Raw Normal View History

2016-01-07 20:39:43 +00:00
package inputs
import "github.com/influxdata/telegraf"
type Creator func() telegraf.Input
2016-01-07 20:39:43 +00:00
var Inputs = map[string]Creator{}
func Add(name string, creator Creator) {
2016-01-07 20:39:43 +00:00
Inputs[name] = creator
}