Пример #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.")
	}
}
Пример #2
0
func (self *Pipeliner) CallMiddlewareMethod(name string, params []interface{}) {
	common.CallObjMethod(self.middlewares, name, params)
}