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

Method ServiceListByKind

service/service/iml.go:63–76  ·  view source on GitHub ↗
(ctx context.Context, kind Kind, serviceIds ...string)

Source from the content-addressed store, hash-verified

61}
62
63func (i *imlServiceService) ServiceListByKind(ctx context.Context, kind Kind, serviceIds ...string) ([]*Service, error) {
64 w := make(map[string]interface{})
65 if len(serviceIds) > 0 {
66 w["uuid"] = serviceIds
67 }
68 w["as_server"] = true
69 w["kind"] = kind.Int()
70 w["is_delete"] = false
71 list, err := i.store.List(ctx, w)
72 if err != nil {
73 return nil, err
74 }
75 return utils.SliceToSlice(list, FromEntity), nil
76}
77
78func (i *imlServiceService) SearchPublicServices(ctx context.Context, keyword string) ([]*Service, error) {
79 w := map[string]interface{}{

Callers

nothing calls this directly

Calls 2

ListMethod · 0.65
IntMethod · 0.45

Tested by

no test coverage detected