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

Struct Router

IceFireDB-Redis-Proxy/pkg/router/redisNode/router.go:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122var _ router.IRoutes = (*Router)(nil)
123
124type 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
134func (r *Router) Do(cmd string, args ...interface{}) (reply interface{}, err error) {
135 conn := r.client.Get()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected