Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct { Burst int // Bucket size Remain int // Bucket left space Rate int // 1 req/(Rate ms) // contains filtered or unexported fields }
Bucket bucket used to rate limiting
Click to show internal directories.
Click to hide internal directories.