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

Method GetLabels

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

Source from the content-addressed store, hash-verified

46}
47
48func (s *imlTeamService) GetLabels(ctx context.Context, ids ...string) map[string]string {
49 if len(ids) == 0 {
50 return nil
51 }
52 list, err := s.teamStore.ListQuery(ctx, "`uuid` in (?)", []interface{}{ids}, "id")
53 if err != nil {
54 return nil
55 }
56 return utils.SliceToMapO(list, func(i *team.Team) (string, string) {
57 return i.UUID, i.Name
58 })
59}
60func labelHandler(e *team.Team) []string {
61 return []string{e.Name, e.UUID, e.Description}
62}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected