Rename module
This commit is contained in:
		
					parent
					
						
							
								17753f535c
							
						
					
				
			
			
				commit
				
					
						8c1adae040
					
				
			
		
					 10 changed files with 16 additions and 16 deletions
				
			
		| 
						 | 
					@ -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 (
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
										
									
									
									
								
							| 
						 | 
					@ -1,3 +1,3 @@
 | 
				
			||||||
module gitlab.hamburg.ccc.de/ccchh/spaceapid
 | 
					module git.hamburg.ccc.de/ccchh/spaceapid
 | 
				
			||||||
 | 
					
 | 
				
			||||||
go 1.21
 | 
					go 1.21
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										8
									
								
								main.go
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								main.go
									
										
									
									
									
								
							| 
						 | 
					@ -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 (
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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 (
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue