More organization - need to use the new flow for probing

This commit is contained in:
2025-12-15 23:47:01 +00:00
parent 3ffad42922
commit 65b915c3ff
8 changed files with 146 additions and 40 deletions
@@ -0,0 +1,26 @@
// Package packets will define the available packets we have
package packets
type Packet interface {
Validate() bool
}
type PacketType uint8
const (
identificationPacket PacketType = iota
)
const (
identificationPacketStr = "identificationPacket"
unknownPacketStr = "unknownPacket"
)
func (p PacketType) String() string {
switch p {
case identificationPacket:
return identificationPacketStr
default:
return unknownPacketStr
}
}