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

Method ExistSubscriber

module/subscribe/iml.go:41–47  ·  view source on GitHub ↗
(ctx context.Context, serviceId string, app string)

Source from the content-addressed store, hash-verified

39}
40
41func (i *imlSubscribeModule) ExistSubscriber(ctx context.Context, serviceId string, app string) error {
42 _, err := i.subscribeService.GetByServiceAndApplication(ctx, serviceId, app)
43 if err == nil {
44 return nil
45 }
46 return err
47}
48
49func (i *imlSubscribeModule) ExportAll(ctx context.Context) ([]*subscribe_dto.ExportSubscriber, error) {
50 list, err := i.subscribeService.List(ctx)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected