Initial commit
This commit is contained in:
20
conf/config.go
Normal file
20
conf/config.go
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user