simplify call to peer
This commit is contained in:
parent
d43938236e
commit
73dc43b329
@ -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()} {
|
||||
|
@ -12,6 +12,8 @@ type Config struct {
|
||||
NATSUrl string
|
||||
MongoUrl string
|
||||
MongoDatabase string
|
||||
Host string
|
||||
Port string
|
||||
}
|
||||
|
||||
func (c Config) GetUrl() string {
|
||||
|
Loading…
Reference in New Issue
Block a user