package conf import "sync" type Config struct { Name string Hostname string PSKPath string PublicKeyPath string PrivateKeyPath string NodeEndpointPort int64 IndexerAddresses string NativeIndexerAddresses string // multiaddrs of native indexers, comma-separated; bypasses IndexerAddresses when set PeerIDS string // TO REMOVE NodeMode string MinIndexer int MaxIndexer int } var instance *Config var once sync.Once func GetConfig() *Config { once.Do(func() { instance = &Config{} }) return instance }