diff options
| author | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-12 12:34:08 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-12 12:59:03 +0100 |
| commit | a30ef6b27e578a4cf0a674b24f5b52b4c1516c63 (patch) | |
| tree | 27c7321cbceac2a487c1ba17151711de3d438a53 /internal/server/server.go | |
| parent | b00ce8214479c50e137db73c77b0cc1393c5e7d4 (diff) | |
All: Rename packages that sound useless or clash with std
Diffstat (limited to 'internal/server/server.go')
| -rw-r--r-- | internal/server/server.go | 10 |
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") } |
