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

Method offlineForCluster

module/subscribe/iml.go:320–330  ·  view source on GitHub ↗
(ctx context.Context, clusterId string, config *gateway.SubscribeRelease)

Source from the content-addressed store, hash-verified

318 })
319}
320func (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
332func (i *imlSubscribeModule) SearchSubscribers(ctx context.Context, serviceId string, keyword string) ([]*subscribe_dto.Subscriber, error) {
333 pInfo, err := i.serviceService.Get(ctx, serviceId)

Callers 2

RevokeSubscriptionMethod · 0.95
DeleteSubscriberMethod · 0.95

Calls 4

GatewayClientMethod · 0.65
CloseMethod · 0.65
OfflineMethod · 0.65
SubscribeMethod · 0.65

Tested by

no test coverage detected