Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DuplicateRemover ¶
type HashSetDuplicateRemover ¶
func (*HashSetDuplicateRemover) IsDuplicate ¶
func (s *HashSetDuplicateRemover) IsDuplicate(request model.Request) bool
func (*HashSetDuplicateRemover) ResetDuplicateCheck ¶
func (s *HashSetDuplicateRemover) ResetDuplicateCheck()
type PriorityQueue ¶
type PriorityScheduler ¶
type PriorityScheduler struct { RequestQueue PriorityQueue //请求队列 DuplicateRemover DuplicateRemover //去重器 IsDuplicate bool //是否去重 // contains filtered or unexported fields }
PriorityScheduler 优先队列调度器
func (*PriorityScheduler) Len ¶
func (s *PriorityScheduler) Len() int
func (*PriorityScheduler) PushData ¶
func (s *PriorityScheduler) PushData(requests ...model.Request)
Click to show internal directories.
Click to hide internal directories.