hash-of-wisdom/internal/protocol/types.go

11 lines
202 B
Go

package protocol
import "io"
// Message represents a protocol message with type and payload stream
type Message struct {
Type MessageType
PayloadLength uint32
PayloadStream io.Reader
}