(ctx context.Context, clusterId string, sub *gateway.SubscribeRelease)
| 97 | } |
| 98 | |
| 99 | func (i *imlCatalogueModule) onlineSubscriber(ctx context.Context, clusterId string, sub *gateway.SubscribeRelease) error { |
| 100 | client, err := i.clusterService.GatewayClient(ctx, clusterId) |
| 101 | if err != nil { |
| 102 | return err |
| 103 | } |
| 104 | defer func() { |
| 105 | _ = client.Close(ctx) |
| 106 | }() |
| 107 | return client.Subscribe().Online(ctx, sub) |
| 108 | } |
| 109 | |
| 110 | func (i *imlCatalogueModule) Get(ctx context.Context, id string) (*catalogue_dto.Catalogue, error) { |
| 111 | info, err := i.catalogueService.Get(ctx, id) |
no test coverage detected