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

Method ModuleDrivers

module/dynamic-module/iml.go:273–283  ·  view source on GitHub ↗

func (i *imlDynamicModule) PartitionStatus(ctx context.Context, module string, id string) (*dynamic_module_dto.OnlineInfo, error) { _, has := driver.Get(module) if !has { return nil, fmt.Errorf("模块【%s】不存在", module) } partitions, err := i.partitionService.List(ctx) if err != nil { return n

(ctx context.Context, group string)

Source from the content-addressed store, hash-verified

271//}
272
273func (i *imlDynamicModule) ModuleDrivers(ctx context.Context, group string) ([]*dynamic_module_dto.ModuleDriver, error) {
274 ds := driver.List(group)
275 return utils.SliceToSlice(ds, func(s driver.IDriver) *dynamic_module_dto.ModuleDriver {
276 return &dynamic_module_dto.ModuleDriver{
277 Name: s.Name(),
278 Title: s.Title(),
279 Path: s.Front(),
280 }
281
282 }), nil
283}
284
285func (i *imlDynamicModule) Render(ctx context.Context, module string) (map[string]interface{}, error) {
286 d, has := driver.Get(module)

Callers

nothing calls this directly

Calls 4

ListFunction · 0.92
NameMethod · 0.65
TitleMethod · 0.65
FrontMethod · 0.65

Tested by

no test coverage detected