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

Method ListByPartition

service/dynamic-module/iml.go:27–34  ·  view source on GitHub ↗
(ctx context.Context, partitionId string)

Source from the content-addressed store, hash-verified

25}
26
27func (i *imlDynamicModuleService) ListByPartition(ctx context.Context, partitionId string) ([]*DynamicModule, error) {
28 list, err := i.store.List(ctx, map[string]interface{}{"partition": partitionId})
29 if err != nil {
30 return nil, err
31 }
32 return utils.SliceToSlice(list, FromEntity), nil
33
34}
35
36func (i *imlDynamicModuleService) OnComplete() {
37 i.IServiceGet = universally.NewGet[DynamicModule, dynamic_module.DynamicModule](i.store, FromEntity)

Callers

nothing calls this directly

Calls 1

ListMethod · 0.65

Tested by

no test coverage detected