Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthUserID ¶
func RemoteAddrID ¶
Types ¶
type BucketLimiter ¶
type BucketLimiter struct {
// contains filtered or unexported fields
}
func NewBucketLimiter ¶
func NewBucketLimiter(freq, burst int) *BucketLimiter
func (*BucketLimiter) Allow ¶
func (b *BucketLimiter) Allow(id string) bool
Click to show internal directories.
Click to hide internal directories.