From 3618f2337bf0099d1fe8e4782cda3677ea4175be Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 20 Mar 2023 13:59:06 +0100 Subject: Types: Split discovery into its own package --- client/server.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client/server.go') 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", -- cgit v1.2.3