simplify call to peer

This commit is contained in:
mr 2024-08-26 11:47:30 +02:00
parent d43938236e
commit 73dc43b329
2 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,8 @@ func Init(appName string, hostname string, port string) {
}()
logs.SetAppName(appName)
logs.SetLogger(logs.CreateLogger("main", ""))
tools.GetConfig().Host = hostname
tools.GetConfig().Port = port
mongo.MONGOService.Init(models.GetModelsNames(), tools.GetConfig())
accessor := (&resource_model.ResourceModel{}).GetAccessor(nil)
for _, model := range []string{utils.DATA_RESOURCE.String(), utils.PROCESSING_RESOURCE.String(), utils.STORAGE_RESOURCE.String(), utils.DATACENTER_RESOURCE.String(), utils.WORKFLOW_RESOURCE.String()} {

View File

@ -12,6 +12,8 @@ type Config struct {
NATSUrl string
MongoUrl string
MongoDatabase string
Host string
Port string
}
func (c Config) GetUrl() string {