MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / getSubscribers

Method getSubscribers

module/subscribe/iml.go:66–78  ·  view source on GitHub ↗
(ctx context.Context, serviceIds []string)

Source from the content-addressed store, hash-verified

64}
65
66func (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
80func (i *imlSubscribeModule) initGateway(ctx context.Context, clusterId string, clientDriver gateway.IClientDriver) error {
81

Callers 1

initGatewayMethod · 0.95

Calls 1

SubscribersByProjectMethod · 0.65

Tested by

no test coverage detected