summaryrefslogtreecommitdiffstats
path: root/bridge/bridge.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/bridge.go')
-rw-r--r--bridge/bridge.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/bridge/bridge.go b/bridge/bridge.go
index ef71f97e..74afcbee 100644
--- a/bridge/bridge.go
+++ b/bridge/bridge.go
@@ -17,6 +17,12 @@ type Bridger interface {
Disconnect() error
}
+// additional methods for bridges that are not started when Connect() is called,
+// because we must join the channels prior to starting processing events
+type BridgerWithChannelDependency interface {
+ Start() error
+}
+
type Bridge struct {
Bridger
*sync.RWMutex