| 120 | var _ router.IRoutes = (*Router)(nil) |
| 121 | |
| 122 | type Router struct { |
| 123 | redisCluster *rediscluster.Cluster |
| 124 | MiddleWares router.HandlersChain |
| 125 | cmd map[string]router.HandlersChain |
| 126 | pool sync.Pool |
| 127 | } |
| 128 | |
| 129 | func (r *Router) Use(funcs ...router.HandlerFunc) router.IRoutes { |
| 130 | r.MiddleWares = append(r.MiddleWares, funcs...) |
nothing calls this directly
no outgoing calls
no test coverage detected