chore: gofmt/goimports

This commit is contained in:
Dominic Evans
2021-05-13 10:12:48 +01:00
parent 5373e12542
commit ef3ac24b07
3 changed files with 16 additions and 13 deletions

View File

@@ -2,10 +2,12 @@ package metrics
import (
"context"
"github.com/jakekeeys/hg612-exporter/pkg/hg612"
"time"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"time"
"github.com/jakekeeys/hg612-exporter/pkg/hg612"
)
type Collector interface {
@@ -33,7 +35,6 @@ func (c MetricsCollector) Collect() {
if err != nil {
logrus.Error(errors.Wrap(err, "error collecting dsl metrics"))
}
}
func (c MetricsCollector) Start() {

View File

@@ -1,15 +1,16 @@
package metrics
import (
"github.com/jakekeeys/hg612-exporter/pkg/hg612"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/jakekeeys/hg612-exporter/pkg/hg612"
)
type dslMetricsCollector struct {
client hg612.Client
host string
client hg612.Client
host string
identifier string
status *prometheus.GaugeVec
@@ -221,8 +222,8 @@ func newDSLMetricsCollector(client hg612.Client, host string, identifier string)
)
return dslMetricsCollector{
client: client,
host: host,
client: client,
host: host,
identifier: identifier,
status: status,