summaryrefslogtreecommitdiff
path: root/pkg/pubsub
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/pubsub')
-rw-r--r--pkg/pubsub/message.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/pubsub/message.go b/pkg/pubsub/message.go
index c1a7246a..c17d153b 100644
--- a/pkg/pubsub/message.go
+++ b/pkg/pubsub/message.go
@@ -5,15 +5,15 @@ import (
)
type Message struct {
- // Topic message been pushed into.
- Topics []string `json:"topic"`
-
// Command (join, leave, headers)
Command string `json:"command"`
// Broker (redis, memory)
Broker string `json:"broker"`
+ // Topic message been pushed into.
+ Topics []string `json:"topic"`
+
// Payload to be broadcasted
Payload []byte `json:"payload"`
}