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

Method onlineSubscriber

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

Source from the content-addressed store, hash-verified

271}
272
273func (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
286func (i *imlSubscribeModule) DeleteSubscriber(ctx context.Context, service string, serviceId string, applicationId string) error {
287 _, err := i.serviceService.Get(ctx, service)

Callers 1

AddSubscriberMethod · 0.95

Calls 4

GatewayClientMethod · 0.65
CloseMethod · 0.65
OnlineMethod · 0.65
SubscribeMethod · 0.65

Tested by

no test coverage detected