Files
oc-peer/conf/config.go
2026-01-23 08:07:17 +01:00

22 lines
304 B
Go

package conf
import "sync"
type Config struct {
Name string
Hostname string
PublicKeyPath string
PrivateKeyPath string
DHTEndpointPort int64
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
}