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=SnmpV3AuthProtocol"; 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[NoAuth-1]
_ = x[MD5-2]
_ = x[SHA-3]
_ = x[SHA224-4]
_ = x[SHA256-5]
_ = x[SHA384-6]
_ = x[SHA512-7]
}
const _SnmpV3AuthProtocol_name = "NoAuthMD5SHASHA224SHA256SHA384SHA512"
var _SnmpV3AuthProtocol_index = [...]uint8{0, 6, 9, 12, 18, 24, 30, 36}
func (i SnmpV3AuthProtocol) String() string {
i -= 1
if i >= SnmpV3AuthProtocol(len(_SnmpV3AuthProtocol_index)-1) {
return "SnmpV3AuthProtocol(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _SnmpV3AuthProtocol_name[_SnmpV3AuthProtocol_index[i]:_SnmpV3AuthProtocol_index[i+1]]
}
|