From 8c1adae040aeef4f86e9718ceb7f45110cd44c00 Mon Sep 17 00:00:00 2001 From: Bennett Wetters Date: Wed, 31 Jan 2024 17:11:15 +0100 Subject: [PATCH] Rename module --- config/config.go | 2 +- config/types.go | 2 +- go.mod | 2 +- handlers/root.go | 2 +- handlers/sensors.go | 4 ++-- handlers/state.go | 4 ++-- handlers/util.go | 4 ++-- main.go | 8 ++++---- util/credentials.go | 2 +- util/util.go | 2 +- 10 files changed, 16 insertions(+), 16 deletions(-) diff --git a/config/config.go b/config/config.go index a5258a1..2190837 100644 --- a/config/config.go +++ b/config/config.go @@ -10,7 +10,7 @@ import ( "slices" "strings" - "gitlab.hamburg.ccc.de/ccchh/spaceapid/types" + "git.hamburg.ccc.de/ccchh/spaceapid/types" ) const ( diff --git a/config/types.go b/config/types.go index c2b3f12..4a305ce 100644 --- a/config/types.go +++ b/config/types.go @@ -1,7 +1,7 @@ package config import ( - "gitlab.hamburg.ccc.de/ccchh/spaceapid/types" + "git.hamburg.ccc.de/ccchh/spaceapid/types" ) type HTTPBACredentialID string diff --git a/go.mod b/go.mod index b0eee8a..e3d228e 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module gitlab.hamburg.ccc.de/ccchh/spaceapid +module git.hamburg.ccc.de/ccchh/spaceapid go 1.21 diff --git a/handlers/root.go b/handlers/root.go index f68f5fd..47091d5 100644 --- a/handlers/root.go +++ b/handlers/root.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "gitlab.hamburg.ccc.de/ccchh/spaceapid/types" + "git.hamburg.ccc.de/ccchh/spaceapid/types" ) func Root(resp *types.SpaceAPIResponseV14) func(http.ResponseWriter, *http.Request) { diff --git a/handlers/sensors.go b/handlers/sensors.go index bd881fb..187620e 100644 --- a/handlers/sensors.go +++ b/handlers/sensors.go @@ -7,8 +7,8 @@ import ( "strconv" "time" - "gitlab.hamburg.ccc.de/ccchh/spaceapid/config" - "gitlab.hamburg.ccc.de/ccchh/spaceapid/types" + "git.hamburg.ccc.de/ccchh/spaceapid/config" + "git.hamburg.ccc.de/ccchh/spaceapid/types" ) func EnvironmentSensor( diff --git a/handlers/state.go b/handlers/state.go index 0ec9727..f965db4 100644 --- a/handlers/state.go +++ b/handlers/state.go @@ -6,8 +6,8 @@ import ( "strconv" "time" - "gitlab.hamburg.ccc.de/ccchh/spaceapid/config" - "gitlab.hamburg.ccc.de/ccchh/spaceapid/types" + "git.hamburg.ccc.de/ccchh/spaceapid/config" + "git.hamburg.ccc.de/ccchh/spaceapid/types" ) func StateOpen( diff --git a/handlers/util.go b/handlers/util.go index f29e8cc..890d983 100644 --- a/handlers/util.go +++ b/handlers/util.go @@ -6,8 +6,8 @@ import ( "io" "net/http" - "gitlab.hamburg.ccc.de/ccchh/spaceapid/config" - "gitlab.hamburg.ccc.de/ccchh/spaceapid/util" + "git.hamburg.ccc.de/ccchh/spaceapid/config" + "git.hamburg.ccc.de/ccchh/spaceapid/util" ) // updateEndpointValidator checks BasicAuth credentials, diff --git a/main.go b/main.go index 1ec02a5..609fff1 100644 --- a/main.go +++ b/main.go @@ -10,10 +10,10 @@ import ( "strings" "syscall" - "gitlab.hamburg.ccc.de/ccchh/spaceapid/config" - "gitlab.hamburg.ccc.de/ccchh/spaceapid/handlers" - "gitlab.hamburg.ccc.de/ccchh/spaceapid/types" - "gitlab.hamburg.ccc.de/ccchh/spaceapid/util" + "git.hamburg.ccc.de/ccchh/spaceapid/config" + "git.hamburg.ccc.de/ccchh/spaceapid/handlers" + "git.hamburg.ccc.de/ccchh/spaceapid/types" + "git.hamburg.ccc.de/ccchh/spaceapid/util" ) var ( diff --git a/util/credentials.go b/util/credentials.go index 9352d5e..f515e61 100644 --- a/util/credentials.go +++ b/util/credentials.go @@ -1,7 +1,7 @@ package util import ( - "gitlab.hamburg.ccc.de/ccchh/spaceapid/config" + "git.hamburg.ccc.de/ccchh/spaceapid/config" ) // CheckCredentials validates whether a given username/password pair matches an diff --git a/util/util.go b/util/util.go index 086ee2f..5f109d8 100644 --- a/util/util.go +++ b/util/util.go @@ -7,7 +7,7 @@ import ( "os" "path" - "gitlab.hamburg.ccc.de/ccchh/spaceapid/types" + "git.hamburg.ccc.de/ccchh/spaceapid/types" ) const (