| 130 | var _ router.IRoutes = (*Router)(nil) |
| 131 | |
| 132 | type Router struct { |
| 133 | client *redis.Pool |
| 134 | MiddleWares router.HandlersChain |
| 135 | cmd map[string]router.HandlersChain |
| 136 | pool sync.Pool |
| 137 | |
| 138 | ctx context.Context |
| 139 | cancel context.CancelFunc |
| 140 | } |
| 141 | |
| 142 | func (r *Router) Do(cmd string, args ...interface{}) (reply interface{}, err error) { |
| 143 | conn := r.client.Get() |
nothing calls this directly
no outgoing calls
no test coverage detected