summaryrefslogtreecommitdiff
path: root/common/pubsub/psmessage.go
diff options
context:
space:
mode:
Diffstat (limited to 'common/pubsub/psmessage.go')
-rw-r--r--common/pubsub/psmessage.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/common/pubsub/psmessage.go b/common/pubsub/psmessage.go
deleted file mode 100644
index e33d9284..00000000
--- a/common/pubsub/psmessage.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package pubsub
-
-import json "github.com/json-iterator/go"
-
-// Message represents a single message with payload bound to a particular topic
-type Message struct {
- // Topic (channel in terms of redis)
- Topic string `json:"topic"`
- // Payload (on some decode stages might be represented as base64 string)
- Payload []byte `json:"payload"`
-}
-
-func (m *Message) MarshalBinary() (data []byte, err error) {
- return json.Marshal(m)
-}