MCPcopy Create free account
hub / github.com/TalkingData/owl / GetStrategies

Method GetStrategies

controller/mysql.go:50–57  ·  view source on GitHub ↗
(product_id int)

Source from the content-addressed store, hash-verified

48}
49
50func (this *db) GetStrategies(product_id int) []*types.Strategy {
51 strategies := []*types.Strategy{}
52 if err := this.Select(&strategies, "SELECT * FROM `strategy` WHERE product_id=?", product_id); err != nil {
53 lg.Error(err.Error())
54 return nil
55 }
56 return strategies
57}
58
59func (this *db) GetHostsExByStrategyID(strategy_id int) map[string]string {
60 ids := make([]string, 0)

Callers 1

loadStrategiesForeverMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected