Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServiceEventHandler ¶
type ServiceEventHandler struct {
TaskValues model.TaskValues
}
服务上下线监听回调
func (*ServiceEventHandler) OnServiceAdded ¶
func (s *ServiceEventHandler) OnServiceAdded(event *common.PluginEvent) error
服务上线回调
func (*ServiceEventHandler) OnServiceDeleted ¶
func (s *ServiceEventHandler) OnServiceDeleted(event *common.PluginEvent) error
服务下线回调
type TaskRoutine ¶
type TaskRoutine interface { //进行任务调度 Schedule() (chan<- *model.PriorityTask, model.TaskValues) //结束协程 Destroy() }
任务调度协程接口
Click to show internal directories.
Click to hide internal directories.