(cmd string, args ...interface{})
| 132 | } |
| 133 | |
| 134 | func (r *Router) Do(cmd string, args ...interface{}) (reply interface{}, err error) { |
| 135 | conn := r.client.Get() |
| 136 | defer conn.Close() |
| 137 | |
| 138 | return conn.Do(cmd, args...) |
| 139 | } |
| 140 | |
| 141 | func (r *Router) Use(funcs ...router.HandlerFunc) router.IRoutes { |
| 142 | r.MiddleWares = append(r.MiddleWares, funcs...) |
no test coverage detected