Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shaper ¶
type Shaper struct { // MaxSessions represens maximum sessions count. MaxSessions int // contains filtered or unexported fields }
Shaper represents a connection traffic constraint set.
func (*Shaper) RateLimiter ¶
RateLimiter returns a new rate limiter configured with shaper parameters.
type Shapers ¶
type Shapers []Shaper
Shapers represents a shaper collection ordered by priority.
func (Shapers) DefaultC2S ¶
DefaultC2S returns C2S default shaper.
func (Shapers) DefaultS2S ¶
DefaultS2S returns S2S default shaper.
Click to show internal directories.
Click to hide internal directories.