ipfs-cluster/pintracker/optracker/phase_string.go
Adrian Lanzafame 8748c45600
go:generate stringer phase and operationtype
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-05-07 12:24:28 +10:00

17 lines
413 B
Go

// Code generated by "stringer -type=Phase"; DO NOT EDIT.
package optracker
import "strconv"
const _Phase_name = "PhaseErrorPhaseQueuedPhaseInProgressPhaseDone"
var _Phase_index = [...]uint8{0, 10, 21, 36, 45}
func (i Phase) String() string {
if i < 0 || i >= Phase(len(_Phase_index)-1) {
return "Phase(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Phase_name[_Phase_index[i]:_Phase_index[i+1]]
}