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

11 lines
202 B
Go
Raw Normal View History

2025-08-22 17:03:42 +03:00
package protocol
2025-08-23 08:18:45 +03:00
import "io"
2025-08-22 17:03:42 +03:00
2025-08-23 08:18:45 +03:00
// Message represents a protocol message with type and payload stream
2025-08-22 17:03:42 +03:00
type Message struct {
2025-08-23 08:18:45 +03:00
Type MessageType
PayloadLength uint32
PayloadStream io.Reader
2025-08-22 17:03:42 +03:00
}