Exemple #1
0
func (self *Scheduler) CallMiddlewareMethod(name string, params []interface{}) {
	if len(self.middlewares) != 0 {
		common.CallObjMethod(self.middlewares, name, params)
	} else {
		panic("scheduler's middleware is empty.")
	}
}
Exemple #2
0
func (self *Pipeliner) CallMiddlewareMethod(name string, params []interface{}) {
	common.CallObjMethod(self.middlewares, name, params)
}