2018-05-11 10:07:17 +00:00
|
|
|
package consumer
|
|
|
|
|
|
|
|
import (
|
|
|
|
oc "git.loafle.net/overflow/consumer"
|
|
|
|
"git.loafle.net/overflow/consumer_metric/config"
|
|
|
|
)
|
|
|
|
|
|
|
|
func New(_config *config.Config) *oc.Consumer {
|
|
|
|
ch := &ConsumerHandlers{
|
|
|
|
Config: _config,
|
|
|
|
}
|
|
|
|
ch.Name = "Metric"
|
|
|
|
ch.ConsumerName = "metric"
|
2018-07-05 09:10:46 +00:00
|
|
|
ch.InfluxDBClientName = "metric"
|
2018-05-11 10:07:17 +00:00
|
|
|
|
|
|
|
c := &oc.Consumer{
|
|
|
|
ConsumerHandler: ch,
|
|
|
|
}
|
|
|
|
|
|
|
|
return c
|
|
|
|
}
|