MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Router

Struct Router

IceFireDB-PubSub/pkg/router/redisNode/router.go:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130var _ router.IRoutes = (*Router)(nil)
131
132type 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
142func (r *Router) Do(cmd string, args ...interface{}) (reply interface{}, err error) {
143 conn := r.client.Get()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected