(ctx context.Context, resources ...*eosc.Base[gateway.StrategyRelease])
| 32 | } |
| 33 | |
| 34 | func (s *StrategyClient) Offline(ctx context.Context, resources ...*eosc.Base[gateway.StrategyRelease]) error { |
| 35 | s.client.Begin(ctx) |
| 36 | for _, r := range resources { |
| 37 | err := s.client.Del(ctx, genWorkerID(r.Config.Name, gateway.ProfessionStrategy)) |
| 38 | if err != nil { |
| 39 | s.client.Rollback(ctx) |
| 40 | return err |
| 41 | } |
| 42 | } |
| 43 | return s.client.Commit(ctx) |
| 44 | } |
| 45 | |
| 46 | func NewStrategyClient(client admin_client.Client) *StrategyClient { |
| 47 | return &StrategyClient{client: client} |
nothing calls this directly
no test coverage detected