boynux/squid-exporter

View on GitHub
types/types.go

Summary

Maintainability
A
0 mins
Test Coverage
package types

/*VarLabel maps key value prometheus labes*/
type VarLabel struct {
    Key   string
    Value string
}

/*Counter maps a squid conters */
type Counter struct {
    Key       string
    Value     float64
    VarLabels []VarLabel
}

/*Counters is a list of multiple squid counters */
type Counters []Counter