Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMinDuration = errors.New("d must larger than 1s")
Functions ¶
This section is empty.
Types ¶
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func NewRateLimit ¶
func NewRateLimit(project string, seconds, limit, burst int) (*RateLimiter, error)
Click to show internal directories.
Click to hide internal directories.