forked from minio/madmin-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tracetype_string.go
49 lines (43 loc) · 1.36 KB
/
tracetype_string.go
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Code generated by "stringer -type=TraceType -trimprefix=Trace trace.go"; DO NOT EDIT.
package madmin
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[TraceOS-1]
_ = x[TraceStorage-2]
_ = x[TraceS3-4]
_ = x[TraceInternal-8]
_ = x[TraceScanner-16]
_ = x[TraceDecommission-32]
_ = x[TraceHealing-64]
_ = x[TraceBatchReplication-128]
_ = x[TraceBatchKeyRotation-256]
_ = x[TraceRebalance-512]
_ = x[TraceReplicationResync-1024]
_ = x[TraceBootstrap-2048]
_ = x[TraceAll-4095]
}
const _TraceType_name = "OSStorageS3InternalScannerDecommissionHealingBatchReplicationBatchKeyRotationRebalanceReplicationResyncBootstrapAll"
var _TraceType_map = map[TraceType]string{
1: _TraceType_name[0:2],
2: _TraceType_name[2:9],
4: _TraceType_name[9:11],
8: _TraceType_name[11:19],
16: _TraceType_name[19:26],
32: _TraceType_name[26:38],
64: _TraceType_name[38:45],
128: _TraceType_name[45:61],
256: _TraceType_name[61:77],
512: _TraceType_name[77:86],
1024: _TraceType_name[86:103],
2048: _TraceType_name[103:112],
4095: _TraceType_name[112:115],
}
func (i TraceType) String() string {
if str, ok := _TraceType_map[i]; ok {
return str
}
return "TraceType(" + strconv.FormatInt(int64(i), 10) + ")"
}