data_sender
This commit is contained in:
parent
762e5cf64b
commit
3aff00acc5
|
@ -70,7 +70,6 @@ func (ds *DataSender) start() {
|
||||||
|
|
||||||
func (ds *DataSender) addObservers() {
|
func (ds *DataSender) addObservers() {
|
||||||
go ds.handleAgentStop()
|
go ds.handleAgentStop()
|
||||||
go ds.handleCollectedData()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ds *DataSender) Stop() {}
|
func (ds *DataSender) Stop() {}
|
||||||
|
|
|
@ -9,16 +9,12 @@ func handleConfigLoaded() {
|
||||||
ch := make(chan interface{}, 0)
|
ch := make(chan interface{}, 0)
|
||||||
observer.Add(messages.CFG_LOADED, ch)
|
observer.Add(messages.CFG_LOADED, ch)
|
||||||
startDataSender(ch)
|
startDataSender(ch)
|
||||||
observer.Remove(messages.CFG_LOADED, ch)
|
//observer.Remove(messages.CFG_LOADED, ch)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ds *DataSender) handleAgentStop() {
|
func (ds *DataSender) handleAgentStop() {
|
||||||
ch := make(chan interface{}, 0)
|
ch := make(chan interface{}, 0)
|
||||||
observer.Add(messages.AGT_STOPPED, ch)
|
observer.Add(messages.AGT_STOPPED, ch)
|
||||||
ds.Stop()
|
ds.Stop()
|
||||||
observer.Remove(messages.AGT_STOPPED, ch)
|
//observer.Remove(messages.AGT_STOPPED, ch)
|
||||||
}
|
|
||||||
|
|
||||||
func (ds *DataSender) handleCollectedData() {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user