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

Method CountMapByService

service/api/iml.go:100–106  ·  view source on GitHub ↗
(ctx context.Context, service ...string)

Source from the content-addressed store, hash-verified

98}
99
100func (i *imlAPIService) CountMapByService(ctx context.Context, service ...string) (map[string]int64, error) {
101 w := map[string]interface{}{}
102 if len(service) > 0 {
103 w["service"] = service
104 }
105 return i.store.CountByGroup(ctx, "", w, "service")
106}
107
108func (i *imlAPIService) ListInfoForService(ctx context.Context, serviceId string) ([]*Info, error) {
109 apis, err := i.store.List(ctx, map[string]interface{}{

Callers

nothing calls this directly

Calls 1

CountByGroupMethod · 0.45

Tested by

no test coverage detected