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

Function CreateExecutor

module/monitor/driver/manager.go:47–53  ·  view source on GitHub ↗
(name string, cfg string)

Source from the content-addressed store, hash-verified

45}
46
47func CreateExecutor(name string, cfg string) (IExecutor, error) {
48 d, has := manager.Get(name)
49 if !has {
50 return nil, ErrDriverNotFound
51 }
52 return d.Create(cfg)
53}
54
55func Check(name string, cfg string) error {
56 d, has := manager.Get(name)

Callers 3

getExecutorMethod · 0.92
SaveMonitorConfigMethod · 0.92
getExecutorMethod · 0.92

Calls 2

GetMethod · 0.65
CreateMethod · 0.65

Tested by

no test coverage detected