MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / get

Method get

module/dynamic-module/iml.go:435–445  ·  view source on GitHub ↗
(ctx context.Context, module string, id string)

Source from the content-addressed store, hash-verified

433}
434
435func (i *imlDynamicModule) get(ctx context.Context, module string, id string) (*dynamic_module.DynamicModule, error) {
436 info, err := i.dynamicModuleService.Get(ctx, id)
437 if err != nil {
438 return nil, err
439 }
440
441 if info.Module != module {
442 return nil, fmt.Errorf("module not match")
443 }
444 return info, nil
445}
446
447func (i *imlDynamicModule) List(ctx context.Context, module string, keyword string, page int, pageSize int) ([]map[string]interface{}, int64, error) {
448 d, has := driver.Get(module)

Callers 3

EditMethod · 0.95
DeleteMethod · 0.95
GetMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected