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

Method Enable

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

Source from the content-addressed store, hash-verified

303}
304
305func (i *imlStrategyModule) Enable(ctx context.Context, id string) error {
306 stop := false
307 return i.strategyService.Save(ctx, id, &strategy.Edit{IsStop: &stop})
308}
309
310func (i *imlStrategyModule) Disable(ctx context.Context, id string) error {
311 stop := true

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.65

Tested by

no test coverage detected