Initial version, empty shell

This commit is contained in:
ycc
2024-07-11 11:40:11 +02:00
parent 9d4b051821
commit 32fcbb7ffe
33 changed files with 1082 additions and 2 deletions

19
models/config.go Normal file
View File

@@ -0,0 +1,19 @@
package models
import "sync"
type Config struct {
MongoUrl string
MongoLogin string
MongoPassword string
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
}

11
models/workflow.go Normal file
View File

@@ -0,0 +1,11 @@
package models
import (
"fmt"
)
func init() {
c := GetConfig()
// configure storage
fmt.Println(c.MongoUrl)
}