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

Method Labels

module/service/filter.go:33–50  ·  view source on GitHub ↗
(values ...string)

Source from the content-addressed store, hash-verified

31}
32
33func (i *imlAppFilter) Labels(values ...string) []string {
34 if len(values) == 0 {
35 return nil
36 }
37 if values[0] == strategy_filter.ValuesALL {
38 return []string{
39 "all consumer",
40 }
41 }
42 apps, err := i.service.AppList(context.Background(), values...)
43 if err != nil {
44 log.Error(err)
45 return nil
46 }
47 return utils.SliceToSlice(apps, func(a *service.Service) string {
48 return a.Name
49 })
50}
51
52func (i *imlAppFilter) Type() string {
53 return strategy_filter.TypeRemote

Callers

nothing calls this directly

Calls 1

AppListMethod · 0.65

Tested by

no test coverage detected