Refactor compression support, now at message level.

This commit is contained in:
Jakob Borg
2014-07-28 11:31:22 +02:00
parent 6a441d5013
commit 6c5c14f35f
8 changed files with 418 additions and 249 deletions

View File

@@ -49,6 +49,10 @@ type RequestMessage struct {
Size uint32
}
type ResponseMessage struct {
Data []byte
}
type ClusterConfigMessage struct {
ClientName string // max:64
ClientVersion string // max:64
@@ -75,3 +79,5 @@ type Option struct {
type CloseMessage struct {
Reason string // max:1024
}
type EmptyMessage struct{}