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

Method onlineSubscriber

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

Source from the content-addressed store, hash-verified

97}
98
99func (i *imlCatalogueModule) onlineSubscriber(ctx context.Context, clusterId string, sub *gateway.SubscribeRelease) error {
100 client, err := i.clusterService.GatewayClient(ctx, clusterId)
101 if err != nil {
102 return err
103 }
104 defer func() {
105 _ = client.Close(ctx)
106 }()
107 return client.Subscribe().Online(ctx, sub)
108}
109
110func (i *imlCatalogueModule) Get(ctx context.Context, id string) (*catalogue_dto.Catalogue, error) {
111 info, err := i.catalogueService.Get(ctx, id)

Callers 1

SubscribeMethod · 0.95

Calls 4

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

Tested by

no test coverage detected