(ctx context.Context, serviceId string)
| 295 | } |
| 296 | |
| 297 | func (i *imlAPIService) ListForService(ctx context.Context, serviceId string) ([]*API, error) { |
| 298 | list, err := i.listForService(ctx, serviceId, false) |
| 299 | if err != nil { |
| 300 | return nil, err |
| 301 | } |
| 302 | return utils.SliceToSlice(list, FromEntity), nil |
| 303 | } |
| 304 | func (i *imlAPIService) listForService(ctx context.Context, serviceId string, isDelete bool) ([]*api.API, error) { |
| 305 | return i.store.ListQuery(ctx, "service=? and is_delete=?", []interface{}{serviceId, isDelete}, "id") |
| 306 | } |
nothing calls this directly
no test coverage detected