1.支持动态服务发现功能

2.Service中支持对RPC结点连接或断开事件监听
This commit is contained in:
boyce
2021-04-29 17:18:13 +08:00
parent 63c2ac4c98
commit a60ad1cccf
16 changed files with 1797 additions and 158 deletions

View File

@@ -26,7 +26,7 @@ type IModule interface {
GetService() IService
GetModuleName() string
GetEventProcessor()event.IEventProcessor
NotifyEvent(ev *event.Event)
NotifyEvent(ev event.IEvent)
}
type IModuleTimer interface {
@@ -213,7 +213,7 @@ func (m *Module) GetEventProcessor() event.IEventProcessor{
return m.eventHandler.GetEventProcessor()
}
func (m *Module) NotifyEvent(ev *event.Event){
func (m *Module) NotifyEvent(ev event.IEvent){
m.eventHandler.NotifyEvent(ev)
}