Refactoring #34

Merged
bendodroid merged 10 commits from :Bendodroid-refactoring into main 2024-05-26 21:06:30 +02:00
10 changed files with 16 additions and 16 deletions
Showing only changes of commit 8c1adae040 - Show all commits

View file

@ -10,7 +10,7 @@ import (
"slices" "slices"
"strings" "strings"
"gitlab.hamburg.ccc.de/ccchh/spaceapid/types" "git.hamburg.ccc.de/ccchh/spaceapid/types"
) )
const ( const (

View file

@ -1,7 +1,7 @@
package config package config
import ( import (
"gitlab.hamburg.ccc.de/ccchh/spaceapid/types" "git.hamburg.ccc.de/ccchh/spaceapid/types"
) )
type HTTPBACredentialID string type HTTPBACredentialID string

2
go.mod
View file

@ -1,3 +1,3 @@
module gitlab.hamburg.ccc.de/ccchh/spaceapid module git.hamburg.ccc.de/ccchh/spaceapid
go 1.21 go 1.21

View file

@ -5,7 +5,7 @@ import (
"log" "log"
"net/http" "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) { func Root(resp *types.SpaceAPIResponseV14) func(http.ResponseWriter, *http.Request) {

View file

@ -7,8 +7,8 @@ import (
"strconv" "strconv"
"time" "time"
"gitlab.hamburg.ccc.de/ccchh/spaceapid/config" "git.hamburg.ccc.de/ccchh/spaceapid/config"
"gitlab.hamburg.ccc.de/ccchh/spaceapid/types" "git.hamburg.ccc.de/ccchh/spaceapid/types"
) )
func EnvironmentSensor( func EnvironmentSensor(

View file

@ -6,8 +6,8 @@ import (
"strconv" "strconv"
"time" "time"
"gitlab.hamburg.ccc.de/ccchh/spaceapid/config" "git.hamburg.ccc.de/ccchh/spaceapid/config"
"gitlab.hamburg.ccc.de/ccchh/spaceapid/types" "git.hamburg.ccc.de/ccchh/spaceapid/types"
) )
func StateOpen( func StateOpen(

View file

@ -6,8 +6,8 @@ import (
"io" "io"
"net/http" "net/http"
"gitlab.hamburg.ccc.de/ccchh/spaceapid/config" "git.hamburg.ccc.de/ccchh/spaceapid/config"
"gitlab.hamburg.ccc.de/ccchh/spaceapid/util" "git.hamburg.ccc.de/ccchh/spaceapid/util"
) )
// updateEndpointValidator checks BasicAuth credentials, // updateEndpointValidator checks BasicAuth credentials,

View file

@ -10,10 +10,10 @@ import (
"strings" "strings"
"syscall" "syscall"
"gitlab.hamburg.ccc.de/ccchh/spaceapid/config" "git.hamburg.ccc.de/ccchh/spaceapid/config"
"gitlab.hamburg.ccc.de/ccchh/spaceapid/handlers" "git.hamburg.ccc.de/ccchh/spaceapid/handlers"
"gitlab.hamburg.ccc.de/ccchh/spaceapid/types" "git.hamburg.ccc.de/ccchh/spaceapid/types"
"gitlab.hamburg.ccc.de/ccchh/spaceapid/util" "git.hamburg.ccc.de/ccchh/spaceapid/util"
) )
var ( var (

View file

@ -1,7 +1,7 @@
package util package util
import ( 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 // CheckCredentials validates whether a given username/password pair matches an

View file

@ -7,7 +7,7 @@ import (
"os" "os"
"path" "path"
"gitlab.hamburg.ccc.de/ccchh/spaceapid/types" "git.hamburg.ccc.de/ccchh/spaceapid/types"
) )
const ( const (