(p *proxy.Proxy, slots []*models.Slot)
| 316 | } |
| 317 | |
| 318 | func AutoOnlineWithFillSlots(p *proxy.Proxy, slots []*models.Slot) { |
| 319 | if err := p.FillSlots(slots); err != nil { |
| 320 | log.PanicErrorf(err, "fill slots failed") |
| 321 | } |
| 322 | if err := p.Start(); err != nil { |
| 323 | log.PanicErrorf(err, "start proxy failed") |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | func OnlineProxy(p *proxy.Proxy, dashboard string) bool { |
| 328 | client := topom.NewApiClient(dashboard) |
no test coverage detected