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

Method List

service/service-overview/iml.go:59–71  ·  view source on GitHub ↗
(ctx context.Context, serviceIds ...string)

Source from the content-addressed store, hash-verified

57}
58
59func (i imlOverviewService) List(ctx context.Context, serviceIds ...string) ([]*Overview, error) {
60 w := make(map[string]interface{})
61 if len(serviceIds) > 0 {
62 w = map[string]interface{}{
63 "service": serviceIds,
64 }
65 }
66 list, err := i.store.List(ctx, w)
67 if err != nil {
68 return nil, err
69 }
70 return utils.SliceToSlice(list, FromEntity), nil
71}
72
73func (i imlOverviewService) Map(ctx context.Context, serviceIds ...string) (map[string]*Overview, error) {
74 list, err := i.List(ctx, serviceIds...)

Callers 1

MapMethod · 0.95

Calls 1

ListMethod · 0.65

Tested by

no test coverage detected