(ctx context.Context, clusterId string, subscriber *gateway.SubscribeRelease)
| 271 | } |
| 272 | |
| 273 | func (i *imlSubscribeModule) onlineSubscriber(ctx context.Context, clusterId string, subscriber *gateway.SubscribeRelease) error { |
| 274 | |
| 275 | client, err := i.clusterService.GatewayClient(ctx, clusterId) |
| 276 | if err != nil { |
| 277 | return err |
| 278 | } |
| 279 | defer func() { |
| 280 | _ = client.Close(ctx) |
| 281 | }() |
| 282 | return client.Subscribe().Online(ctx, subscriber) |
| 283 | |
| 284 | } |
| 285 | |
| 286 | func (i *imlSubscribeModule) DeleteSubscriber(ctx context.Context, service string, serviceId string, applicationId string) error { |
| 287 | _, err := i.serviceService.Get(ctx, service) |
no test coverage detected