blob: f9d9dbe4e73766169189235032a140cba1b93bcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Code generated by "stringer -type Status"; DO NOT EDIT.
package queue
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[Success-0]
_ = x[ExecFailure-1]
_ = x[Crashed-2]
_ = x[Restarted-3]
_ = x[Hanged-4]
}
const _Status_name = "SuccessExecFailureCrashedRestartedHanged"
var _Status_index = [...]uint8{0, 7, 18, 25, 34, 40}
func (i Status) String() string {
idx := int(i) - 0
if i < 0 || idx >= len(_Status_index)-1 {
return "Status(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Status_name[_Status_index[idx]:_Status_index[idx+1]]
}
|