oc-discovery/models/config.go

26 lines
382 B
Go
Raw Normal View History

2023-03-09 11:45:29 +01:00
package models
import "sync"
type Config struct {
2024-09-02 17:52:12 +02:00
Port int
LokiUrl string
2023-03-09 11:45:29 +01:00
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
}