-
Notifications
You must be signed in to change notification settings - Fork 349
/
snmpv3privprotocol_string.go
30 lines (24 loc) · 841 Bytes
/
snmpv3privprotocol_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
// Code generated by "stringer -type=SnmpV3PrivProtocol"; DO NOT EDIT.
package gosnmp
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[NoPriv-1]
_ = x[DES-2]
_ = x[AES-3]
_ = x[AES192-4]
_ = x[AES256-5]
_ = x[AES192C-6]
_ = x[AES256C-7]
}
const _SnmpV3PrivProtocol_name = "NoPrivDESAESAES192AES256AES192CAES256C"
var _SnmpV3PrivProtocol_index = [...]uint8{0, 6, 9, 12, 18, 24, 31, 38}
func (i SnmpV3PrivProtocol) String() string {
i -= 1
if i >= SnmpV3PrivProtocol(len(_SnmpV3PrivProtocol_index)-1) {
return "SnmpV3PrivProtocol(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _SnmpV3PrivProtocol_name[_SnmpV3PrivProtocol_index[i]:_SnmpV3PrivProtocol_index[i+1]]
}