diff options
Diffstat (limited to 'src/state.go')
| -rw-r--r-- | src/state.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/state.go b/src/state.go index 22dcaaf..5d054bb 100644 --- a/src/state.go +++ b/src/state.go @@ -1,15 +1,16 @@ package eduvpn type EduVPNState struct { - // The struct used for oauth - OAuth *EduVPNOauth - // The endpoints Endpoints *EduVPNEndpoints // Info passed by the client Name string Server string + + // OAuth + OAuthToken *EduVPNOAuthToken + OAuthSession *EduVPNOAuthSession } func Register(state *EduVPNState, name string, server string) error { @@ -26,7 +27,6 @@ func Register(state *EduVPNState, name string, server string) error { return nil } - var VPNStateInstance *EduVPNState func GetVPNState() *EduVPNState { @@ -35,5 +35,3 @@ func GetVPNState() *EduVPNState { } return VPNStateInstance } - - |
