mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 18:21:20 +00:00
da20785685
Former-commit-id: 23f542f43b4b493e38f5aa4c29788ed93a63b43b [formerly 71b23a6a28eb045fcfeab6329de69f1e5455486b] Former-commit-id: d12b3a6decc876f010a71f98e11df7387c1aaf2a
28 lines
791 B
Go
28 lines
791 B
Go
// Code generated by "stringer -type=nodeEvent"; DO NOT EDIT.
|
|
|
|
package discv5
|
|
|
|
import "strconv"
|
|
|
|
const (
|
|
_nodeEvent_name_0 = "invalidEventpingPacketpongPacketfindnodePacketneighborsPacketfindnodeHashPackettopicRegisterPackettopicQueryPackettopicNodesPacket"
|
|
_nodeEvent_name_1 = "pongTimeoutpingTimeoutneighboursTimeout"
|
|
)
|
|
|
|
var (
|
|
_nodeEvent_index_0 = [...]uint8{0, 12, 22, 32, 46, 61, 79, 98, 114, 130}
|
|
_nodeEvent_index_1 = [...]uint8{0, 11, 22, 39}
|
|
)
|
|
|
|
func (i nodeEvent) String() string {
|
|
switch {
|
|
case 0 <= i && i <= 8:
|
|
return _nodeEvent_name_0[_nodeEvent_index_0[i]:_nodeEvent_index_0[i+1]]
|
|
case 265 <= i && i <= 267:
|
|
i -= 265
|
|
return _nodeEvent_name_1[_nodeEvent_index_1[i]:_nodeEvent_index_1[i+1]]
|
|
default:
|
|
return "nodeEvent(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|