(ctx context.Context, serviceIds ...string)
| 54 | } |
| 55 | |
| 56 | func (i *imlAPIService) ListForServices(ctx context.Context, serviceIds ...string) ([]*API, error) { |
| 57 | w := map[string]interface{}{} |
| 58 | if len(serviceIds) > 0 { |
| 59 | w["service"] = serviceIds |
| 60 | } |
| 61 | list, err := i.store.List(ctx, w) |
| 62 | if err != nil { |
| 63 | return nil, err |
| 64 | } |
| 65 | return utils.SliceToSlice(list, FromEntity), nil |
| 66 | } |
| 67 | |
| 68 | func (i *imlAPIService) ListInfoForServices(ctx context.Context, serviceIds ...string) ([]*Info, error) { |
| 69 | w := map[string]interface{}{} |