MCPcopy
hub / github.com/CodisLabs/codis / NewReverseProxy

Function NewReverseProxy

cmd/fe/main.go:288–293  ·  view source on GitHub ↗
(loader ConfigLoader)

Source from the content-addressed store, hash-verified

286}
287
288func NewReverseProxy(loader ConfigLoader) *ReverseProxy {
289 r := &ReverseProxy{}
290 r.loader = loader
291 r.routes = make(map[string]*httputil.ReverseProxy)
292 return r
293}
294
295func (r *ReverseProxy) reload(d time.Duration) {
296 if time.Now().Sub(r.loadAt) < d {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected