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.") } }
func (self *Pipeliner) CallMiddlewareMethod(name string, params []interface{}) { common.CallObjMethod(self.middlewares, name, params) }