summaryrefslogtreecommitdiff
path: root/common/gateway/transporter.go
diff options
context:
space:
mode:
Diffstat (limited to 'common/gateway/transporter.go')
-rw-r--r--common/gateway/transporter.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/common/gateway/transporter.go b/common/gateway/transporter.go
index 44b2c4b..a71e88d 100644
--- a/common/gateway/transporter.go
+++ b/common/gateway/transporter.go
@@ -1,7 +1,12 @@
package gateway
-// Transporter is the base interface to push events to
+type PushData struct {
+ Data []byte
+ Name string
+}
+
+// Transporter is the base interface for the transportation layer of Nova
type Transporter interface {
- PushDispatchEvent(name string, data []byte) error
- PushEventCache(name string, data []byte) error
+ PushChannel() chan PushData
+ PullChannel() chan []byte
}