summaryrefslogtreecommitdiff
path: root/client/server.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-03-20 13:59:06 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-09-25 09:43:37 +0200
commit3618f2337bf0099d1fe8e4782cda3677ea4175be (patch)
tree638fa68f28c20178a729ef991e470d8d8aa9ee64 /client/server.go
parent8ccb4486cdb03cd3b10606b4bd77b7bcb4107e6d (diff)
Types: Split discovery into its own package
Diffstat (limited to 'client/server.go')
-rw-r--r--client/server.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/server.go b/client/server.go
index a0de9f3..74caff1 100644
--- a/client/server.go
+++ b/client/server.go
@@ -9,6 +9,7 @@ import (
"github.com/eduvpn/eduvpn-common/internal/oauth"
"github.com/eduvpn/eduvpn-common/internal/server"
"github.com/eduvpn/eduvpn-common/types"
+ discotypes "github.com/eduvpn/eduvpn-common/types/discovery"
"github.com/eduvpn/eduvpn-common/types/protocol"
"github.com/go-errors/errors"
)
@@ -265,7 +266,7 @@ func (c *Client) AddInstituteServer(url string) (err error) {
// FIXME: Do nothing with discovery here as the client already has it
// So pass a server as the parameter
- var dSrv *types.DiscoveryServer
+ var dSrv *discotypes.Server
dSrv, err = c.Discovery.ServerByURL(url, "institute_access")
if err != nil {
c.goBackInternal()
@@ -378,7 +379,7 @@ func (c *Client) AddCustomServer(url string) (err error) {
// Indicate that we're loading the server
c.FSM.GoTransition(StateLoadingServer)
- customServer := &types.DiscoveryServer{
+ customServer := &discotypes.Server{
BaseURL: url,
DisplayName: map[string]string{"en": url},
Type: "custom_server",