summaryrefslogtreecommitdiff
path: root/pkg/bitmask
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-12-23 00:43:29 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-12-23 00:43:40 +0100
commitbddadc7323d6467f5233f26b97652fe671d77eed (patch)
tree7f5aba2a33e852a2be04ff3e6bbd0383376d91f1 /pkg/bitmask
parentd83fd91d6293386867cc908f05b5f3f4d95a7053 (diff)
[ui] expose bonafide+snowflake bootstrap events
Diffstat (limited to 'pkg/bitmask')
-rw-r--r--pkg/bitmask/bitmask.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/bitmask/bitmask.go b/pkg/bitmask/bitmask.go
index 0c2a344..54a5b06 100644
--- a/pkg/bitmask/bitmask.go
+++ b/pkg/bitmask/bitmask.go
@@ -15,8 +15,16 @@
package bitmask
+import (
+ "0xacab.org/leap/bitmask-vpn/pkg/snowflake"
+)
+
+// XXX this interface is a relic of a time in which we had a dual implementation.
+// Nowadays it could be deprecated.
+
type Bitmask interface {
GetStatusCh() <-chan string
+ GetSnowflakeCh() <-chan *snowflake.StatusEvent
Close()
Version() (string, error)
StartVPN(provider string) error