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

Method GetNames

cmd/fe/main.go:322–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320}
321
322func (r *ReverseProxy) GetNames() []string {
323 r.Lock()
324 defer r.Unlock()
325 r.reload(time.Second * 5)
326 var names []string
327 for name, _ := range r.routes {
328 names = append(names, name)
329 }
330 return names
331}

Callers 1

mainFunction · 0.95

Calls 1

reloadMethod · 0.95

Tested by

no test coverage detected