(ctx context.Context, serviceIds []string)
| 64 | } |
| 65 | |
| 66 | func (i *imlSubscribeModule) getSubscribers(ctx context.Context, serviceIds []string) ([]*gateway.SubscribeRelease, error) { |
| 67 | subscribers, err := i.subscribeService.SubscribersByProject(ctx, serviceIds...) |
| 68 | if err != nil { |
| 69 | return nil, err |
| 70 | } |
| 71 | return utils.SliceToSlice(subscribers, func(s *subscribe.Subscribe) *gateway.SubscribeRelease { |
| 72 | return &gateway.SubscribeRelease{ |
| 73 | Service: s.Service, |
| 74 | Application: s.Application, |
| 75 | Expired: "0", |
| 76 | } |
| 77 | }), nil |
| 78 | } |
| 79 | |
| 80 | func (i *imlSubscribeModule) initGateway(ctx context.Context, clusterId string, clientDriver gateway.IClientDriver) error { |
| 81 |
no test coverage detected