DISCOVERY
This commit is contained in:
@@ -51,3 +51,5 @@ func (w *WorkflowResource) ConvertToPricedResource(t tools.DataType, selectedIns
|
||||
CreatorID: w.CreatorID,
|
||||
}, nil // TODO ???
|
||||
}
|
||||
|
||||
// TODO : as instanciated resource !
|
||||
|
||||
@@ -92,7 +92,7 @@ func (a *API) GetState() (State, int, error) {
|
||||
}
|
||||
|
||||
func (a *API) ListenRouter(exec func(msg map[string]string)) {
|
||||
go NewNATSCaller().ListenNats(DISCOVERY.GenerateKey(), map[NATSMethod]func(msg map[string]string){
|
||||
go NewNATSCaller().ListenNats(map[NATSMethod]func(msg map[string]string){
|
||||
DISCOVERY: exec,
|
||||
})
|
||||
}
|
||||
@@ -113,7 +113,7 @@ func (a *API) SubscribeRouter(infos []*beego.ControllerInfo) {
|
||||
}
|
||||
}
|
||||
}
|
||||
go nats.SetNATSPub("api", DISCOVERY, discovery)
|
||||
go nats.SetNATSPub(DISCOVERY, discovery)
|
||||
}
|
||||
|
||||
// CheckRemotePeer checks the state of a remote peer
|
||||
|
||||
Reference in New Issue
Block a user