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

Method GetLabels

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

Source from the content-addressed store, hash-verified

142}
143
144func (i *imlServiceService) GetLabels(ctx context.Context, ids ...string) map[string]string {
145 if len(ids) == 0 {
146 return nil
147 }
148 list, err := i.store.ListQuery(ctx, "`uuid` in (?)", []interface{}{ids}, "id")
149 if err != nil {
150 return nil
151 }
152 return utils.SliceToMapO(list, func(i *service.Service) (string, string) {
153 return i.UUID, i.Name
154 })
155}
156
157func (i *imlServiceService) OnComplete() {
158 i.IServiceGet = universally.NewGetSoftDelete[Service, service.Service](i.store, FromEntity)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected