You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
457 B
17 lines
457 B
5 years ago
|
// Code generated by "stringer -type=PacketType"; DO NOT EDIT.
|
||
|
|
||
|
package packets
|
||
|
|
||
|
import "strconv"
|
||
|
|
||
|
const _PacketType_name = "PushDataPushACKPullDataPullRespPullACKTXACK"
|
||
|
|
||
|
var _PacketType_index = [...]uint8{0, 8, 15, 23, 31, 38, 43}
|
||
|
|
||
|
func (i PacketType) String() string {
|
||
|
if i >= PacketType(len(_PacketType_index)-1) {
|
||
|
return "PacketType(" + strconv.FormatInt(int64(i), 10) + ")"
|
||
|
}
|
||
|
return _PacketType_name[_PacketType_index[i]:_PacketType_index[i+1]]
|
||
|
}
|