Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLimitExceed = errors.New("limit exceed") ErrDeadline = errors.New("deal line") )
Functions ¶
This section is empty.
Types ¶
type CoDel ¶
type CoDel struct {
// contains filtered or unexported fields
}
CoDel is CoDel req buffer queue.
type CoDelOption ¶
type CoDelOption struct { Target int64 // target queue delay (default 20 ms). Internal int64 // sliding minimum time window width (default 500 ms) }
CoDelOption CoDel queue config.
type CoDelStats ¶
CoDelStats is the Statistics of CoDel queue.
type Limiter ¶
Limiter limit interface.
func NewLimiter ¶
func NewLimiter(c ...CoDelOption) Limiter
NewLimiter returns a new Limiter that allows events up to adaptive rtt.
type LogStatsFunc ¶
type LogStatsFunc func()
Click to show internal directories.
Click to hide internal directories.