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

Method addRoute

IceFireDB-Redis-Proxy/pkg/router/redisNode/router.go:156–161  ·  view source on GitHub ↗
(operation string, handlers router.HandlersChain)

Source from the content-addressed store, hash-verified

154}
155
156func (r *Router) addRoute(operation string, handlers router.HandlersChain) {
157 if r.cmd == nil {
158 r.cmd = make(map[string]router.HandlersChain)
159 }
160 r.cmd[operation] = handlers
161}
162
163func (r *Router) combineHandlers(handlers router.HandlersChain) router.HandlersChain {
164 finalSize := len(r.MiddleWares) + len(handlers)

Callers 1

AddCommandMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected