SetPlanStrategy sets the plan strategy
(strategy api.PlanStrategy)
| 422 | |
| 423 | // SetPlanStrategy sets the plan strategy |
| 424 | func (lp *Loadpoint) SetPlanStrategy(strategy api.PlanStrategy) error { |
| 425 | lp.Lock() |
| 426 | defer lp.Unlock() |
| 427 | |
| 428 | lp.log.DEBUG.Printf("set plan strategy: continuous=%v, precondition=%v", strategy.Continuous, strategy.Precondition) |
| 429 | |
| 430 | return lp.setPlanStrategy(strategy) |
| 431 | } |
| 432 | |
| 433 | // getPlanStrategy returns the plan strategy (no mutex) |
| 434 | func (lp *Loadpoint) getPlanStrategy() api.PlanStrategy { |
nothing calls this directly
no test coverage detected