2020-01-16 10:05:12 -08:00
|
|
|
// Code generated by "stringer -type=Kind"; DO NOT EDIT.
|
|
|
|
|
|
|
|
package metric
|
|
|
|
|
|
|
|
import "strconv"
|
|
|
|
|
|
|
|
func _() {
|
|
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
|
|
// Re-run the stringer command to generate them again.
|
|
|
|
var x [1]struct{}
|
2020-05-15 22:11:12 -07:00
|
|
|
_ = x[ValueRecorderKind-0]
|
2020-05-18 11:03:43 -07:00
|
|
|
_ = x[ValueObserverKind-1]
|
2020-03-19 12:02:46 -07:00
|
|
|
_ = x[CounterKind-2]
|
2020-05-19 10:00:22 -07:00
|
|
|
_ = x[UpDownCounterKind-3]
|
2020-05-19 11:49:24 -07:00
|
|
|
_ = x[SumObserverKind-4]
|
2020-05-20 10:19:51 -07:00
|
|
|
_ = x[UpDownSumObserverKind-5]
|
2020-01-16 10:05:12 -08:00
|
|
|
}
|
|
|
|
|
2020-05-20 10:19:51 -07:00
|
|
|
const _Kind_name = "ValueRecorderKindValueObserverKindCounterKindUpDownCounterKindSumObserverKindUpDownSumObserverKind"
|
2020-01-16 10:05:12 -08:00
|
|
|
|
2020-05-20 10:19:51 -07:00
|
|
|
var _Kind_index = [...]uint8{0, 17, 34, 45, 62, 77, 98}
|
2020-01-16 10:05:12 -08:00
|
|
|
|
|
|
|
func (i Kind) String() string {
|
|
|
|
if i < 0 || i >= Kind(len(_Kind_index)-1) {
|
|
|
|
return "Kind(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
|
|
}
|
|
|
|
return _Kind_name[_Kind_index[i]:_Kind_index[i+1]]
|
|
|
|
}
|