influxdb/tsdb/tsm1/cachestatus_string.go

30 lines
987 B
Go

// Code generated by "stringer -type=CacheStatus"; DO NOT EDIT.
package tsm1
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[CacheStatusOkay-0]
_ = x[CacheStatusSizeExceeded-1]
_ = x[CacheStatusAgeExceeded-2]
_ = x[CacheStatusColdNoWrites-3]
_ = x[CacheStatusRetention-4]
_ = x[CacheStatusFullCompaction-5]
_ = x[CacheStatusBackup-6]
}
const _CacheStatus_name = "CacheStatusOkayCacheStatusSizeExceededCacheStatusAgeExceededCacheStatusColdNoWritesCacheStatusRetentionCacheStatusFullCompactionCacheStatusBackup"
var _CacheStatus_index = [...]uint8{0, 15, 38, 60, 83, 103, 128, 145}
func (i CacheStatus) String() string {
if i < 0 || i >= CacheStatus(len(_CacheStatus_index)-1) {
return "CacheStatus(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _CacheStatus_name[_CacheStatus_index[i]:_CacheStatus_index[i+1]]
}