nodeevent_string.go 445 B

123456789101112131415161718
  1. // Code generated by "stringer -type=nodeEvent"; DO NOT EDIT.
  2. package discv5
  3. import "strconv"
  4. const _nodeEvent_name = "pongTimeoutpingTimeoutneighboursTimeout"
  5. var _nodeEvent_index = [...]uint8{0, 11, 22, 39}
  6. func (i nodeEvent) String() string {
  7. i -= 264
  8. if i >= nodeEvent(len(_nodeEvent_index)-1) {
  9. return "nodeEvent(" + strconv.FormatInt(int64(i+264), 10) + ")"
  10. }
  11. return _nodeEvent_name[_nodeEvent_index[i]:_nodeEvent_index[i+1]]
  12. }