move plugin interfaces into separate package
This commit is contained in:
@@ -9,15 +9,15 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/influxdata/telegraf"
|
||||
"github.com/influxdata/telegraf/plugins"
|
||||
)
|
||||
|
||||
type RollbarWebhook struct {
|
||||
Path string
|
||||
acc telegraf.Accumulator
|
||||
acc plugins.Accumulator
|
||||
}
|
||||
|
||||
func (rb *RollbarWebhook) Register(router *mux.Router, acc telegraf.Accumulator) {
|
||||
func (rb *RollbarWebhook) Register(router *mux.Router, acc plugins.Accumulator) {
|
||||
router.HandleFunc(rb.Path, rb.eventHandler).Methods("POST")
|
||||
log.Printf("I! Started the webhooks_rollbar on %s\n", rb.Path)
|
||||
rb.acc = acc
|
||||
|
||||
Reference in New Issue
Block a user