github.com/aergoio/aergo@v1.3.1/types/peerstate_string.go (about) 1 // Code generated by "stringer -type=PeerState"; DO NOT EDIT. 2 3 package types 4 5 import "strconv" 6 7 const _PeerState_name = "STARTINGHANDSHAKINGRUNNINGSTOPPINGSTOPPEDDOWN" 8 9 var _PeerState_index = [...]uint8{0, 8, 19, 26, 34, 41, 45} 10 11 func (i PeerState) String() string { 12 if i < 0 || i >= PeerState(len(_PeerState_index)-1) { 13 return "PeerState(" + strconv.FormatInt(int64(i), 10) + ")" 14 } 15 return _PeerState_name[_PeerState_index[i]:_PeerState_index[i+1]] 16 }