Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterfaceScheduler ¶
type InterfaceScheduler interface { Start(ctx context.Context, wg *sync.WaitGroup, readyChan chan<- string) GetNextQueue() (queueName string, found bool) UpdateJobCost(queueName string, jobCost float64) }
InterfaceScheduler ...
type Lottery ¶
Lottery ...
func NewLotteryScheduler ¶
func NewLotteryScheduler(c *config.BrokerConfig, sa *stats.StatisticAgent, logger *zap.Logger) *Lottery
NewLotteryScheduler ...
func (*Lottery) GetNextQueue ¶
GetNextQueue ..
func (*Lottery) UpdateJobCost ¶
UpdateJobCost ...
Click to show internal directories.
Click to hide internal directories.