Files
oc-discovery/conf/config.go

26 lines
377 B
Go
Raw Normal View History

2026-01-28 17:22:29 +01:00
package conf
import "sync"
type Config struct {
2026-01-30 16:57:36 +01:00
Name string
Hostname string
PSKPath string
PublicKeyPath string
PrivateKeyPath string
NodeEndpointPort int64
IndexerAddresses string
2026-01-28 17:22:29 +01:00
2026-01-30 16:57:36 +01:00
NodeMode string
2026-01-28 17:22:29 +01:00
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
}