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

Method Labels

module/router/filter.go:29–39  ·  view source on GitHub ↗
(values ...string)

Source from the content-addressed store, hash-verified

27}
28
29func (i *imlRouterFilter) Labels(values ...string) []string {
30 list, err := i.service.ListInfo(context.Background(), values...)
31 if err != nil {
32 log.Errorf("get api labels error: %v", err)
33 return nil
34 }
35
36 return utils.SliceToSlice(list, func(a *api.Info) string {
37 return a.Name
38 })
39}
40
41func (i *imlRouterFilter) Type() string {
42 return strategy_filter.TypeRemote

Callers

nothing calls this directly

Calls 1

ListInfoMethod · 0.65

Tested by

no test coverage detected