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

Method GetLabels

service/api/iml.go:327–338  ·  view source on GitHub ↗
(ctx context.Context, ids ...string)

Source from the content-addressed store, hash-verified

325}
326
327func (i *imlAPIService) GetLabels(ctx context.Context, ids ...string) map[string]string {
328 if len(ids) == 0 {
329 return nil
330 }
331 list, err := i.apiInfoStore.ListQuery(ctx, "`uuid` in (?)", []interface{}{ids}, "id")
332 if err != nil {
333 return nil
334 }
335 return utils.SliceToMapO(list, func(i *api.Info) (string, string) {
336 return i.UUID, i.Name
337 })
338}
339
340func (i *imlAPIService) OnComplete() {
341 i.IServiceGet = universally.NewGetSoftDelete[API, api.API](i.store, FromEntity)

Callers 2

ListMethod · 0.45
CompleteLabelsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected