added basic servers implementation

This commit is contained in:
2025-03-16 19:23:02 +02:00
parent d1f1d4e7c9
commit f57888cb8e
8 changed files with 280 additions and 552 deletions

13
main.go
View File

@@ -18,14 +18,6 @@ import (
const CONFIG_SECRET_NAME = "CONFIG_PATH"
func get_servers_db_handler(config models.ServersDatabaseConfig) {
}
func get_users_db_handler(config models.UsersDatabaseConfig) {
}
func main() {
router := gin.Default()
@@ -49,11 +41,6 @@ func main() {
panic(err)
}
switch config.UserDatabase.Mongo {
case nil:
default:
}
client, err := dbhandler.Connect(config.UsersDatabase.Mongo)
defer func() {
if err = client.Disconnect(context.TODO()); err != nil {