MCPcopy Index your code
hub / github.com/CodisLabs/codis / getProxy

Method getProxy

pkg/topom/context.go:292–297  ·  view source on GitHub ↗
(token string)

Source from the content-addressed store, hash-verified

290}
291
292func (ctx *context) getProxy(token string) (*models.Proxy, error) {
293 if p := ctx.proxy[token]; p != nil {
294 return p, nil
295 }
296 return nil, errors.Errorf("proxy-[%s] doesn't exist", token)
297}
298
299func (ctx *context) maxProxyId() (maxId int) {
300 for _, p := range ctx.proxy {

Callers 3

RemoveProxyMethod · 0.80
ReinitProxyMethod · 0.80
TestProxyCacheFunction · 0.80

Calls 1

ErrorfMethod · 0.80

Tested by 1

TestProxyCacheFunction · 0.64