added basic servers implementation
This commit is contained in:
13
main.go
13
main.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user