summaryrefslogtreecommitdiff
path: root/internal/server/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server/server.go')
-rw-r--r--internal/server/server.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/server/server.go b/internal/server/server.go
index 2372494..4623224 100644
--- a/internal/server/server.go
+++ b/internal/server/server.go
@@ -7,9 +7,9 @@ import (
"os"
"time"
- "codeberg.org/eduVPN/eduvpn-common/internal/api"
- "codeberg.org/eduVPN/eduvpn-common/internal/api/profiles"
v2 "codeberg.org/eduVPN/eduvpn-common/internal/config/v2"
+ "codeberg.org/eduVPN/eduvpn-common/internal/eduvpnapi"
+ "codeberg.org/eduVPN/eduvpn-common/internal/eduvpnapi/profiles"
"codeberg.org/eduVPN/eduvpn-common/types/protocol"
srvtypes "codeberg.org/eduVPN/eduvpn-common/types/server"
)
@@ -18,7 +18,7 @@ import (
type Server struct {
identifier string
t srvtypes.Type
- apiw *api.API
+ apiw *eduvpnapi.API
storage *v2.V2
}
@@ -26,7 +26,7 @@ type Server struct {
var ErrInvalidProfile = errors.New("invalid profile")
// NewServer creates a new server
-func (s *Servers) NewServer(identifier string, t srvtypes.Type, api *api.API) Server {
+func (s *Servers) NewServer(identifier string, t srvtypes.Type, api *eduvpnapi.API) Server {
return Server{
identifier: identifier,
t: t,
@@ -65,7 +65,7 @@ func (s *Server) FreshProfiles(ctx context.Context) (*profiles.Info, error) {
return prfs, nil
}
-func (s *Server) api() (*api.API, error) {
+func (s *Server) api() (*eduvpnapi.API, error) {
if s.apiw == nil {
return nil, errors.New("no API object found")
}