summaryrefslogtreecommitdiff
path: root/autostart.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-07-09 23:34:14 +0200
committerRuben Pollan <meskio@sindominio.net>2018-07-10 13:03:30 +0200
commitfa08af4697c14c5a365ed7ec2b2dce3f67386d49 (patch)
tree2ae1eb50401b3a2b2104444275cabdd31f4d3619 /autostart.go
parent2ac0be0c3f431bdefe99b29ab83f3b3c8bd9ea78 (diff)
[feat] autostart the standalone systray if the vpn was on
- Resolves: #8
Diffstat (limited to 'autostart.go')
-rw-r--r--autostart.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/autostart.go b/autostart.go
new file mode 100644
index 0000000..62f30cc
--- /dev/null
+++ b/autostart.go
@@ -0,0 +1,16 @@
+package main
+
+type autostart interface {
+ Disable() error
+ Enable() error
+}
+
+type dummyAutostart struct{}
+
+func (a *dummyAutostart) Disable() error {
+ return nil
+}
+
+func (a *dummyAutostart) Enable() error {
+ return nil
+}