(token string)
| 290 | } |
| 291 | |
| 292 | func (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 | |
| 299 | func (ctx *context) maxProxyId() (maxId int) { |
| 300 | for _, p := range ctx.proxy { |