MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / onlineSubscriber

Method onlineSubscriber

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

Source from the content-addressed store, hash-verified

452 })
453}
454func (i *imlSubscribeApprovalModule) onlineSubscriber(ctx context.Context, clusterId string, sub *gateway.SubscribeRelease) error {
455 client, err := i.clusterService.GatewayClient(ctx, clusterId)
456 if err != nil {
457 return err
458 }
459 defer func() {
460 _ = client.Close(ctx)
461 }()
462 return client.Subscribe().Online(ctx, sub)
463}
464func (i *imlSubscribeApprovalModule) Reject(ctx context.Context, pid string, id string, approveInfo *subscribe_dto.Approve) error {
465 _, err := i.subscribeApplyService.Get(ctx, id)
466 if err != nil {

Callers 1

PassMethod · 0.95

Calls 4

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

Tested by

no test coverage detected