summaryrefslogtreecommitdiff
path: root/src/state.go
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2022-03-21 17:16:28 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-03-21 17:16:28 +0100
commit324202a50e440cac36a756d6a2628ebadd2f8d70 (patch)
tree10381dc1e490eddb3b446a8f3ce599493f87d26d /src/state.go
parentfc56f8770923ec1997444a8318a18be0a8397520 (diff)
Update python and add basic config support
Diffstat (limited to 'src/state.go')
-rw-r--r--src/state.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/state.go b/src/state.go
index 582dd5a..6f06860 100644
--- a/src/state.go
+++ b/src/state.go
@@ -2,16 +2,18 @@ package eduvpn
type VPNState struct {
// Info passed by the client
- Name string
+ ConfigDirectory string `json:"-"`
+ Name string `json:"-"`
// The chosen server
- Server *Server
+ Server *Server `json:"server"`
}
-func Register(state *VPNState, name string, stateCallback func(string, string)) error {
+func Register(state *VPNState, name string, directory string, stateCallback func(string, string, string)) error {
state.Name = name
+ state.ConfigDirectory = directory
- stateCallback("START", "REGISTER")
+ stateCallback("START", "REGISTERED", "test data")
return nil
}