Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RLW ¶
type RLW struct { ID string RL ratelimit.Limiter TargetRPM uint32 // contains filtered or unexported fields }
func Create ¶
This will create an instance of the ratelimitedworker.
- id: primary identifier for the ratelimiter Job the work is assosiated to
- targetRPM: the expected maximum rate limit to perform at
- hasty: if true maintains a higher RPS good for work() that takes long, false forces rate below the limit.
- verbose: enable logging
Click to show internal directories.
Click to hide internal directories.