github.com/kisexp/xdchain@v0.0.0-20211206025815-490d6b732aa7/p2p/discv5/nodeevent_string.go (about) 1 // Code generated by "stringer -type=nodeEvent"; DO NOT EDIT. 2 3 package discv5 4 5 import "strconv" 6 7 const _nodeEvent_name = "pongTimeoutpingTimeoutneighboursTimeout" 8 9 var _nodeEvent_index = [...]uint8{0, 11, 22, 39} 10 11 func (i nodeEvent) String() string { 12 i -= 264 13 if i >= nodeEvent(len(_nodeEvent_index)-1) { 14 return "nodeEvent(" + strconv.FormatInt(int64(i+264), 10) + ")" 15 } 16 return _nodeEvent_name[_nodeEvent_index[i]:_nodeEvent_index[i+1]] 17 }