mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
1.支持动态服务发现功能
2.Service中支持对RPC结点连接或断开事件监听
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user