forked from gosnmp/gosnmp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnmpv3msgflags_string.go
37 lines (31 loc) · 942 Bytes
/
snmpv3msgflags_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
31
32
33
34
35
36
37
// Code generated by "stringer -type=SnmpV3MsgFlags"; 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[NoAuthNoPriv-0]
_ = x[AuthNoPriv-1]
_ = x[AuthPriv-3]
_ = x[Reportable-4]
}
const (
_SnmpV3MsgFlags_name_0 = "NoAuthNoPrivAuthNoPriv"
_SnmpV3MsgFlags_name_1 = "AuthPrivReportable"
)
var (
_SnmpV3MsgFlags_index_0 = [...]uint8{0, 12, 22}
_SnmpV3MsgFlags_index_1 = [...]uint8{0, 8, 18}
)
func (i SnmpV3MsgFlags) String() string {
switch {
case i <= 1:
return _SnmpV3MsgFlags_name_0[_SnmpV3MsgFlags_index_0[i]:_SnmpV3MsgFlags_index_0[i+1]]
case 3 <= i && i <= 4:
i -= 3
return _SnmpV3MsgFlags_name_1[_SnmpV3MsgFlags_index_1[i]:_SnmpV3MsgFlags_index_1[i+1]]
default:
return "SnmpV3MsgFlags(" + strconv.FormatInt(int64(i), 10) + ")"
}
}