github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/internal/grid/msg_string.go (about) 1 // Code generated by "stringer -type=Op -output=msg_string.go -trimprefix=Op msg.go"; DO NOT EDIT. 2 3 package grid 4 5 import "strconv" 6 7 func _() { 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[OpConnect-1] 12 _ = x[OpConnectResponse-2] 13 _ = x[OpPing-3] 14 _ = x[OpPong-4] 15 _ = x[OpConnectMux-5] 16 _ = x[OpMuxConnectError-6] 17 _ = x[OpDisconnectClientMux-7] 18 _ = x[OpDisconnectServerMux-8] 19 _ = x[OpMuxClientMsg-9] 20 _ = x[OpMuxServerMsg-10] 21 _ = x[OpUnblockSrvMux-11] 22 _ = x[OpUnblockClMux-12] 23 _ = x[OpAckMux-13] 24 _ = x[OpRequest-14] 25 _ = x[OpResponse-15] 26 _ = x[OpDisconnect-16] 27 _ = x[OpMerged-17] 28 } 29 30 const _Op_name = "ConnectConnectResponsePingPongConnectMuxMuxConnectErrorDisconnectClientMuxDisconnectServerMuxMuxClientMsgMuxServerMsgUnblockSrvMuxUnblockClMuxAckMuxRequestResponseDisconnectMerged" 31 32 var _Op_index = [...]uint8{0, 7, 22, 26, 30, 40, 55, 74, 93, 105, 117, 130, 142, 148, 155, 163, 173, 179} 33 34 func (i Op) String() string { 35 i -= 1 36 if i >= Op(len(_Op_index)-1) { 37 return "Op(" + strconv.FormatInt(int64(i+1), 10) + ")" 38 } 39 return _Op_name[_Op_index[i]:_Op_index[i+1]] 40 }