Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue CoDel buffer 缓冲队列
func New ¶
New 实例化 CoDel Queue
Example ¶
// 默认配置 // queue = New() // 可供选择配置选项 // 设置对列延时 // SetTarget(40) // 设置滑动窗口最小时间宽度 // SetInternal(1000) queue = New(SetTarget(40), SetInternal(1000))
Output:
func (*Queue) Pop ¶
func (q *Queue) Pop()
Pop 弹出 CoDel Queue 的请求
Example ¶
// 出队,没有请求则会阻塞 queue.Pop()
Output:
Click to show internal directories.
Click to hide internal directories.