go:generate stringer phase and operationtype

License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
This commit is contained in:
Adrian Lanzafame 2019-05-07 12:24:28 +10:00
parent ff6e559744
commit 8748c45600
No known key found for this signature in database
GPG Key ID: 87E40C5D62EAE192
2 changed files with 4 additions and 4 deletions

View File

@ -4,9 +4,9 @@ package optracker
import "strconv"
const _OperationType_name = "OperationUnknownOperationPinOperationUnpin"
const _OperationType_name = "OperationUnknownOperationPinOperationUnpinOperationRemoteOperationShard"
var _OperationType_index = [...]uint8{0, 16, 28, 42}
var _OperationType_index = [...]uint8{0, 16, 28, 42, 57, 71}
func (i OperationType) String() string {
if i < 0 || i >= OperationType(len(_OperationType_index)-1) {

View File

@ -4,9 +4,9 @@ package optracker
import "strconv"
const _Phase_name = "PhaseErrorPhaseQueuedPhaseInProgress"
const _Phase_name = "PhaseErrorPhaseQueuedPhaseInProgressPhaseDone"
var _Phase_index = [...]uint8{0, 10, 21, 36}
var _Phase_index = [...]uint8{0, 10, 21, 36, 45}
func (i Phase) String() string {
if i < 0 || i >= Phase(len(_Phase_index)-1) {