(cmd string, args ...interface{})
| 140 | } |
| 141 | |
| 142 | func (r *Router) Do(cmd string, args ...interface{}) (reply interface{}, err error) { |
| 143 | conn := r.client.Get() |
| 144 | defer conn.Close() |
| 145 | |
| 146 | return conn.Do(cmd, args...) |
| 147 | } |
| 148 | |
| 149 | func (r *Router) Use(funcs ...router.HandlerFunc) router.IRoutes { |
| 150 | r.MiddleWares = append(r.MiddleWares, funcs...) |
no test coverage detected