{"modulePath":"github.com/getlawrence/cli","version":"v0.1.0-beta.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package utils\n\n## Types\n\n```go\ntype RateLimiter struct {\n\t// contains filtered or unexported fields\n}\n```\nRateLimiter provides rate limiting functionality for API requests\n\n```go\nfunc NewRateLimiter(limit int, window time.Duration) *RateLimiter\n```\nNewRateLimiter creates a new rate limiter\n\n```go\nfunc (r *RateLimiter) Reset(limit int, window time.Duration)\n```\nReset resets the rate limiter with new parameters\n\n```go\nfunc (r *RateLimiter) Stop()\n```\nStop stops the rate limiter\n\n```go\nfunc (r *RateLimiter) Wait()\n```\nWait waits for the next available time slot\n\n","path":"github.com/getlawrence/cli/pkg/knowledge/utils","name":"utils","synopsis":"","isRedistributable":true}
