2015-08-11 20:02:04 +00:00
|
|
|
package outputs
|
|
|
|
|
|
|
|
import (
|
2016-01-27 21:21:36 +00:00
|
|
|
"github.com/influxdata/telegraf"
|
2015-08-11 20:02:04 +00:00
|
|
|
)
|
|
|
|
|
2016-01-27 21:21:36 +00:00
|
|
|
type Creator func() telegraf.Output
|
2015-08-11 20:02:04 +00:00
|
|
|
|
|
|
|
var Outputs = map[string]Creator{}
|
|
|
|
|
|
|
|
func Add(name string, creator Creator) {
|
|
|
|
Outputs[name] = creator
|
|
|
|
}
|