2017-06-26 17:30:47 +03:00
|
|
|
// Code generated by "stringer -type=SecurityType"; DO NOT EDIT.
|
|
|
|
|
2018-07-27 16:55:06 +03:00
|
|
|
package rfb
|
2017-06-26 17:30:47 +03:00
|
|
|
|
2020-01-23 01:56:16 +03:00
|
|
|
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[SecTypeUnknown-0]
|
|
|
|
_ = x[SecTypeNone-1]
|
|
|
|
_ = x[SecTypeVNC-2]
|
|
|
|
_ = x[SecTypeTight-16]
|
|
|
|
_ = x[SecTypeATEN-16]
|
|
|
|
_ = x[SecTypeVeNCrypt-19]
|
|
|
|
}
|
2017-06-26 17:30:47 +03:00
|
|
|
|
|
|
|
const (
|
|
|
|
_SecurityType_name_0 = "SecTypeUnknownSecTypeNoneSecTypeVNC"
|
|
|
|
_SecurityType_name_1 = "SecTypeTight"
|
|
|
|
_SecurityType_name_2 = "SecTypeVeNCrypt"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
_SecurityType_index_0 = [...]uint8{0, 14, 25, 35}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (i SecurityType) String() string {
|
|
|
|
switch {
|
2020-01-23 01:56:16 +03:00
|
|
|
case i <= 2:
|
2017-06-26 17:30:47 +03:00
|
|
|
return _SecurityType_name_0[_SecurityType_index_0[i]:_SecurityType_index_0[i+1]]
|
|
|
|
case i == 16:
|
|
|
|
return _SecurityType_name_1
|
|
|
|
case i == 19:
|
|
|
|
return _SecurityType_name_2
|
|
|
|
default:
|
2020-01-23 01:56:16 +03:00
|
|
|
return "SecurityType(" + strconv.FormatInt(int64(i), 10) + ")"
|
2017-06-26 17:30:47 +03:00
|
|
|
}
|
|
|
|
}
|