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

Method Disable

module/strategy/iml.go:310–313  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

308}
309
310func (i *imlStrategyModule) Disable(ctx context.Context, id string) error {
311 stop := true
312 return i.strategyService.Save(ctx, id, &strategy.Edit{IsStop: &stop})
313}
314
315func (i *imlStrategyModule) Publish(ctx context.Context, driver string, scope string, target string) error {
316 d, has := strategy_driver.GetDriver(driver)

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.65

Tested by

no test coverage detected