rclone/vendor/storj.io/drpc/drpcwire/packet_string.go
2020-05-12 15:56:50 +00:00

31 lines
882 B
Go

// Code generated by "stringer -type=Kind -trimprefix=Kind_ -output=packet_string.go"; DO NOT EDIT.
package drpcwire
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[kindReserved-0]
_ = x[kindCancelDeprecated-4]
_ = x[KindInvoke-1]
_ = x[KindMessage-2]
_ = x[KindError-3]
_ = x[KindClose-5]
_ = x[KindCloseSend-6]
_ = x[KindInvokeMetadata-7]
}
const _Kind_name = "kindReservedKindInvokeKindMessageKindErrorkindCancelDeprecatedKindCloseKindCloseSendKindInvokeMetadata"
var _Kind_index = [...]uint8{0, 12, 22, 33, 42, 62, 71, 84, 102}
func (i Kind) String() string {
if i >= Kind(len(_Kind_index)-1) {
return "Kind(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Kind_name[_Kind_index[i]:_Kind_index[i+1]]
}