summaryrefslogtreecommitdiff
path: root/src/state.go
diff options
context:
space:
mode:
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
}