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

Method addRoute

IceFireDB-PubSub/pkg/router/redisNode/router.go:164–169  ·  view source on GitHub ↗
(operation string, handlers router.HandlersChain)

Source from the content-addressed store, hash-verified

162}
163
164func (r *Router) addRoute(operation string, handlers router.HandlersChain) {
165 if r.cmd == nil {
166 r.cmd = make(map[string]router.HandlersChain)
167 }
168 r.cmd[operation] = handlers
169}
170
171func (r *Router) combineHandlers(handlers router.HandlersChain) router.HandlersChain {
172 finalSize := len(r.MiddleWares) + len(handlers)

Callers 1

AddCommandMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected