oc-auth/conf/config.go

21 lines
269 B
Go
Raw Normal View History

2024-07-26 13:46:05 +02:00
package conf
import "sync"
type Config struct {
NatsUrl string
NatsLogin string
NatsPassword string
OidcUrl string
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
}