Skip to content
File

Blob: chord/kvtargettype_string.go

go27 lines
1// Code generated by "stringer -type=kvTargetType -linecomment"; DO NOT EDIT.
2 
3package chord
4 
5import "strconv"
6 
7func _() {
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[targetLocal-0]
12 _ = x[targetRemote-1]
13 _ = x[targetReplication-2]
14 _ = x[targetSurrogate-3]
15}
16 
17const _kvTargetType_name = "LocalRemoteReplicationSurrogate"
18 
19var _kvTargetType_index = [...]uint8{0, 5, 11, 22, 31}
20 
21func (i kvTargetType) String() string {
22 if i < 0 || i >= kvTargetType(len(_kvTargetType_index)-1) {
23 return "kvTargetType(" + strconv.FormatInt(int64(i), 10) + ")"
24 }
25 return _kvTargetType_name[_kvTargetType_index[i]:_kvTargetType_index[i+1]]
26}