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

Method GetLabels

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

Source from the content-addressed store, hash-verified

77}
78
79func (i *imlProviderService) GetLabels(ctx context.Context, ids ...string) map[string]string {
80 if len(ids) == 0 {
81 return nil
82 }
83 list, err := i.store.ListQuery(ctx, "`uuid` in (?)", []interface{}{ids}, "id")
84 if err != nil {
85 return nil
86 }
87 return utils.SliceToMapO(list, func(i *ai.Provider) (string, string) {
88 return i.UUID, i.Name
89 })
90}
91
92func (i *imlProviderService) OnComplete() {
93 i.IServiceGet = universally.NewGet[Provider, ai.Provider](i.store, FromEntity)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected