forked from ti-mo/conntrack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheventtype_string.go
More file actions
28 lines (22 loc) · 793 Bytes
/
eventtype_string.go
File metadata and controls
28 lines (22 loc) · 793 Bytes
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
// Code generated by "stringer -type=eventType"; DO NOT EDIT.
package conntrack
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[EventUnknown-0]
_ = x[EventNew-1]
_ = x[EventUpdate-2]
_ = x[EventDestroy-3]
_ = x[EventExpNew-4]
_ = x[EventExpDestroy-5]
}
const _eventType_name = "EventUnknownEventNewEventUpdateEventDestroyEventExpNewEventExpDestroy"
var _eventType_index = [...]uint8{0, 12, 20, 31, 43, 54, 69}
func (i eventType) String() string {
if i >= eventType(len(_eventType_index)-1) {
return "eventType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _eventType_name[_eventType_index[i]:_eventType_index[i+1]]
}