(ctx context.Context, clusterId string, config *gateway.SubscribeRelease)
| 318 | }) |
| 319 | } |
| 320 | func (i *imlSubscribeModule) offlineForCluster(ctx context.Context, clusterId string, config *gateway.SubscribeRelease) error { |
| 321 | |
| 322 | client, err := i.clusterService.GatewayClient(ctx, clusterId) |
| 323 | if err != nil { |
| 324 | return err |
| 325 | } |
| 326 | defer func() { |
| 327 | _ = client.Close(ctx) |
| 328 | }() |
| 329 | return client.Subscribe().Offline(ctx, config) |
| 330 | } |
| 331 | |
| 332 | func (i *imlSubscribeModule) SearchSubscribers(ctx context.Context, serviceId string, keyword string) ([]*subscribe_dto.Subscriber, error) { |
| 333 | pInfo, err := i.serviceService.Get(ctx, serviceId) |
no test coverage detected