2016-01-07 20:39:43 +00:00
|
|
|
package inputs
|
2015-04-01 16:34:32 +00:00
|
|
|
|
2016-01-27 21:21:36 +00:00
|
|
|
import "github.com/influxdata/telegraf"
|
2015-05-27 05:14:42 +00:00
|
|
|
|
2016-01-27 21:21:36 +00:00
|
|
|
type Creator func() telegraf.Input
|
2015-04-01 16:34:32 +00:00
|
|
|
|
2016-01-07 20:39:43 +00:00
|
|
|
var Inputs = map[string]Creator{}
|
2015-04-01 16:34:32 +00:00
|
|
|
|
|
|
|
func Add(name string, creator Creator) {
|
2016-01-07 20:39:43 +00:00
|
|
|
Inputs[name] = creator
|
2015-04-01 16:34:32 +00:00
|
|
|
}
|