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

Method Map

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

Source from the content-addressed store, hash-verified

71}
72
73func (i imlOverviewService) Map(ctx context.Context, serviceIds ...string) (map[string]*Overview, error) {
74 list, err := i.List(ctx, serviceIds...)
75 if err != nil {
76 return nil, err
77 }
78 return utils.SliceToMap(list, func(i *Overview) string {
79 return i.Service
80 }), nil
81}

Callers

nothing calls this directly

Calls 1

ListMethod · 0.95

Tested by

no test coverage detected