type Cost struct { // contains filtered or unexported fields }
Cost based strategy
func NewCost() (*Cost, error)
NewCost init new Cost task selection strategy
func (c *Cost) FindBest(ws []*api.Worker, ts []*api.Task, workerIndex int) (*api.Task, error)
FindBest is the main selection method select task for worker ws[workerIndex]