Refactoring #34
					 10 changed files with 16 additions and 16 deletions
				
			
		Rename module
				commit
				
					
					
						8c1adae040
					
				
			
		|  | @ -10,7 +10,7 @@ import ( | |||
| 	"slices" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	"gitlab.hamburg.ccc.de/ccchh/spaceapid/types" | ||||
| 	"git.hamburg.ccc.de/ccchh/spaceapid/types" | ||||
| ) | ||||
| 
 | ||||
| const ( | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| package config | ||||
| 
 | ||||
| import ( | ||||
| 	"gitlab.hamburg.ccc.de/ccchh/spaceapid/types" | ||||
| 	"git.hamburg.ccc.de/ccchh/spaceapid/types" | ||||
| ) | ||||
| 
 | ||||
| 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 | ||||
|  |  | |||
|  | @ -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) { | ||||
|  |  | |||
|  | @ -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( | ||||
|  |  | |||
|  | @ -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( | ||||
|  |  | |||
|  | @ -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, | ||||
|  |  | |||
							
								
								
									
										8
									
								
								main.go
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								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 ( | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -7,7 +7,7 @@ import ( | |||
| 	"os" | ||||
| 	"path" | ||||
| 
 | ||||
| 	"gitlab.hamburg.ccc.de/ccchh/spaceapid/types" | ||||
| 	"git.hamburg.ccc.de/ccchh/spaceapid/types" | ||||
| ) | ||||
| 
 | ||||
| const ( | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue