| 122 | var _ router.IRoutes = (*Router)(nil) |
| 123 | |
| 124 | type Router struct { |
| 125 | client *redis.Pool |
| 126 | MiddleWares router.HandlersChain |
| 127 | cmd map[string]router.HandlersChain |
| 128 | pool sync.Pool |
| 129 | |
| 130 | ctx context.Context |
| 131 | cancel context.CancelFunc |
| 132 | } |
| 133 | |
| 134 | func (r *Router) Do(cmd string, args ...interface{}) (reply interface{}, err error) { |
| 135 | conn := r.client.Get() |
nothing calls this directly
no outgoing calls
no test coverage detected