oc-discovery/models/config.go

24 lines
341 B
Go
Raw Normal View History

2023-03-09 11:45:29 +01:00
package models
import "sync"
type Config struct {
ZincUrl string
ZincLogin string
ZincPassword string
RedisUrl string
RedisPassword string
IdentityFile string
Defaultpeers string
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
}