Files
oc-peer/conf/config.go
2026-01-15 13:35:11 +01:00

20 lines
256 B
Go

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