Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RateLimit ¶
type RateLimit struct {
// contains filtered or unexported fields
}
func NewRateLimit ¶
func NewRateLimit(ctx context.Context, cfg RateLimitConfig) (*RateLimit, error)
func (*RateLimit) NewRequest ¶
NewRequest returns nil if the rate has not been exceeded.
type RateLimitConfig ¶
Click to show internal directories.
Click to hide internal directories.