diff --git a/cmd/solana_exporter/desc.go b/cmd/solana_exporter/desc.go index 5a65601..adbe36d 100644 --- a/cmd/solana_exporter/desc.go +++ b/cmd/solana_exporter/desc.go @@ -5,18 +5,12 @@ import ( "github.com/prometheus/client_golang/prometheus" ) -type ( - GaugeDesc struct { - Desc *prometheus.Desc - Name string - Help string - VariableLabels []string - } - collectionTest struct { - Name string - ExpectedResponse string - } -) +type GaugeDesc struct { + Desc *prometheus.Desc + Name string + Help string + VariableLabels []string +} func NewGaugeDesc(name string, description string, variableLabels ...string) *GaugeDesc { return &GaugeDesc{ diff --git a/cmd/solana_exporter/desc_test.go b/cmd/solana_exporter/desc_test.go index 2d60ef5..649f132 100644 --- a/cmd/solana_exporter/desc_test.go +++ b/cmd/solana_exporter/desc_test.go @@ -5,10 +5,16 @@ import ( "sort" ) -type LV struct { - labels []string - value float64 -} +type ( + LV struct { + labels []string + value float64 + } + collectionTest struct { + Name string + ExpectedResponse string + } +) func NewLV(value float64, labels ...string) LV { return LV{labels, value}