21 lines
269 B
Go
21 lines
269 B
Go
|
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
|
||
|
}
|