2020-09-16 11:50:31 +00:00
|
|
|
// Code generated by "stringer -type=AttrType -linecomment"; DO NOT EDIT.
|
2020-08-19 13:20:48 +00:00
|
|
|
|
|
|
|
package transaction
|
|
|
|
|
|
|
|
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[HighPriority-1]
|
2020-09-16 11:50:31 +00:00
|
|
|
_ = x[OracleResponseT-17]
|
2020-10-14 16:07:16 +00:00
|
|
|
_ = x[NotValidBeforeT-224]
|
2020-10-15 11:45:29 +00:00
|
|
|
_ = x[ConflictsT-225]
|
2020-08-19 13:20:48 +00:00
|
|
|
}
|
|
|
|
|
2020-09-16 11:50:31 +00:00
|
|
|
const (
|
|
|
|
_AttrType_name_0 = "HighPriority"
|
|
|
|
_AttrType_name_1 = "OracleResponse"
|
2020-10-15 11:45:29 +00:00
|
|
|
_AttrType_name_2 = "NotValidBeforeConflicts"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
_AttrType_index_2 = [...]uint8{0, 14, 23}
|
2020-09-16 11:50:31 +00:00
|
|
|
)
|
2020-08-19 13:20:48 +00:00
|
|
|
|
|
|
|
func (i AttrType) String() string {
|
2020-09-16 11:50:31 +00:00
|
|
|
switch {
|
|
|
|
case i == 1:
|
|
|
|
return _AttrType_name_0
|
|
|
|
case i == 17:
|
|
|
|
return _AttrType_name_1
|
2020-10-15 11:45:29 +00:00
|
|
|
case 224 <= i && i <= 225:
|
|
|
|
i -= 224
|
|
|
|
return _AttrType_name_2[_AttrType_index_2[i]:_AttrType_index_2[i+1]]
|
2020-09-16 11:50:31 +00:00
|
|
|
default:
|
|
|
|
return "AttrType(" + strconv.FormatInt(int64(i), 10) + ")"
|
2020-08-19 13:20:48 +00:00
|
|
|
}
|
|
|
|
}
|