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

Method ListByApplication

service/subscribe/iml.go:157–168  ·  view source on GitHub ↗
(ctx context.Context, service string, application ...string)

Source from the content-addressed store, hash-verified

155}
156
157func (i *imlSubscribeService) ListByApplication(ctx context.Context, service string, application ...string) ([]*Subscribe, error) {
158 w := make(map[string]interface{})
159 if len(application) > 0 {
160 w["application"] = application
161 }
162 w["service"] = service
163 list, err := i.store.List(ctx, w)
164 if err != nil {
165 return nil, err
166 }
167 return utils.SliceToSlice(list, FromEntity), nil
168}
169
170func (i *imlSubscribeService) OnComplete() {
171 i.IServiceGet = universally.NewGet[Subscribe, subscribe.Subscribe](i.store, FromEntity)

Callers

nothing calls this directly

Calls 1

ListMethod · 0.65

Tested by

no test coverage detected