summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-05-28 13:19:02 +0300
committerValery Piashchynski <[email protected]>2021-05-28 13:19:02 +0300
commit0a64bb2a71ddb6b0ee5861e255a20df1327aa099 (patch)
tree98a607f517706174215b92be8f337d21f918b955 /pkg
parent5527b31b2da2b60ed8877b8c43badb73f98ec7bb (diff)
- Tests for the ws-redis, ws-memory
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/pubsub/message.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/pubsub/message.go b/pkg/pubsub/message.go
index 2536aece..17e6780f 100644
--- a/pkg/pubsub/message.go
+++ b/pkg/pubsub/message.go
@@ -18,6 +18,7 @@ type Msg struct {
Payload_ []byte `json:"payload"`
}
+// MarshalBinary needed to marshal message for the redis
func (m *Msg) MarshalBinary() ([]byte, error) {
return json.Marshal(m)
}