Major Refactoring

- Move components to separate packages
- Fix HTTP header for 401 response
- Add documentation
This commit is contained in:
Bendodroid 2023-11-05 20:23:31 +01:00
commit 4b41acfa7b
Signed by: bendodroid
GPG key ID: 3EEE19A0F73D5FFC
5 changed files with 191 additions and 103 deletions

11
config/config.go Normal file
View file

@ -0,0 +1,11 @@
package config
// Configuration represents the settings needed to configure spaceapid
type Configuration struct {
// The HTTP BasicAuth username for door status updates
BAUsername string
// The HTTP BasicAuth password for door status updates
BAPassword string
// The path to the JSON with initial values
TemplatePath string
}