summaryrefslogtreecommitdiff
path: root/pkg/pubsub
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-05-31 16:05:00 +0300
committerValery Piashchynski <[email protected]>2021-05-31 16:05:00 +0300
commit49703d70a3ede70ce9a0cab824cbcb96dbf824c0 (patch)
tree181d72a3321d52c960a519ba3a233e3e7fe8e86a /pkg/pubsub
parent0ee91dc24d3e68706d89092c06b1c0d09dab0353 (diff)
- Rework access_validators
- WS plugin uses it's own pool to handle requests on the /ws (or any user-defined) endpoint - Ability to write custom validators Signed-off-by: Valery Piashchynski <[email protected]>
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"`
}