2019-10-29 22:27:22 +02:00
|
|
|
// Code generated by "stringer -type=NumberKind"; DO NOT EDIT.
|
|
|
|
|
2020-05-11 08:44:42 +02:00
|
|
|
package metric
|
2019-10-29 22:27:22 +02:00
|
|
|
|
|
|
|
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{}
|
|
|
|
_ = x[Int64NumberKind-0]
|
|
|
|
_ = x[Float64NumberKind-1]
|
|
|
|
}
|
|
|
|
|
Eliminate Uint64NumberKind from API (#864)
fixes #851
This includes all of the associated methods, such as
AsUint64, AsUint64Atomic, AsUint64Ptr, CoerceToUint64, SetUint64
SetUint64Atomic, SwapUint64, SwapUint64Atomic, AddUint64,
AddUint64Atomic, CompamreAndSwapUint64, CompareUint64
Only significant change as a result was converting the histogram
aggregator's `count` state field into an int64 from a `metric.Number`.
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-24 01:28:04 +02:00
|
|
|
const _NumberKind_name = "Int64NumberKindFloat64NumberKind"
|
2019-10-29 22:27:22 +02:00
|
|
|
|
Eliminate Uint64NumberKind from API (#864)
fixes #851
This includes all of the associated methods, such as
AsUint64, AsUint64Atomic, AsUint64Ptr, CoerceToUint64, SetUint64
SetUint64Atomic, SwapUint64, SwapUint64Atomic, AddUint64,
AddUint64Atomic, CompamreAndSwapUint64, CompareUint64
Only significant change as a result was converting the histogram
aggregator's `count` state field into an int64 from a `metric.Number`.
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-24 01:28:04 +02:00
|
|
|
var _NumberKind_index = [...]uint8{0, 15, 32}
|
2019-10-29 22:27:22 +02:00
|
|
|
|
|
|
|
func (i NumberKind) String() string {
|
|
|
|
if i < 0 || i >= NumberKind(len(_NumberKind_index)-1) {
|
|
|
|
return "NumberKind(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
|
|
}
|
|
|
|
return _NumberKind_name[_NumberKind_index[i]:_NumberKind_index[i+1]]
|
|
|
|
}
|