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

Method GetByServiceAndApplication

service/subscribe/iml.go:45–51  ·  view source on GitHub ↗
(ctx context.Context, serviceId string, applicationId string)

Source from the content-addressed store, hash-verified

43}
44
45func (i *imlSubscribeService) GetByServiceAndApplication(ctx context.Context, serviceId string, applicationId string) (*Subscribe, error) {
46 info, err := i.store.First(ctx, map[string]interface{}{"service": serviceId, "application": applicationId})
47 if err != nil {
48 return nil, err
49 }
50 return FromEntity(info), nil
51}
52
53func (i *imlSubscribeService) CountMapByService(ctx context.Context, status int, service ...string) (map[string]int64, error) {
54 w := make(map[string]interface{})

Callers

nothing calls this directly

Calls 1

FromEntityFunction · 0.70

Tested by

no test coverage detected