File
Blob: spec/chord/state_string.go
| 1 | // Code generated by "stringer -type=State"; DO NOT EDIT. |
| 2 | |
| 3 | package chord |
| 4 | |
| 5 | import "strconv" |
| 6 | |
| 7 | func _() { |
| 8 | // An "invalid array index" compiler error signifies that the constant values have changed. |
| 9 | // Re-run the stringer command to generate them again. |
| 10 | var x [1]struct{} |
| 11 | _ = x[Inactive-0] |
| 12 | _ = x[Joining-1] |
| 13 | _ = x[Active-2] |
| 14 | _ = x[Transferring-3] |
| 15 | _ = x[Leaving-4] |
| 16 | _ = x[Left-5] |
| 17 | } |
| 18 | |
| 19 | const _State_name = "InactiveJoiningActiveTransferringLeavingLeft" |
| 20 | |
| 21 | var _State_index = [...]uint8{0, 8, 15, 21, 33, 40, 44} |
| 22 | |
| 23 | func (i State) String() string { |
| 24 | if i >= State(len(_State_index)-1) { |
| 25 | return "State(" + strconv.FormatInt(int64(i), 10) + ")" |
| 26 | } |
| 27 | return _State_name[_State_index[i]:_State_index[i+1]] |
| 28 | } |