Discover Catalog Per

This commit is contained in:
mr
2026-01-27 15:39:53 +01:00
parent 50ff7ebf89
commit 0d3446ca5b
16 changed files with 1448 additions and 155 deletions

20
conf/config.go Normal file
View File

@@ -0,0 +1,20 @@
package conf
import "sync"
type Config struct {
PublicKeyPath string
PrivateKeyPath string
DHTEndpointPort int64
PSKPath string
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
}