Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimiterIFace ¶
type RateLimiterIFace interface { // Take is called by each method needing rate limit applied // // based on rate limit per second setting, // given amount of time is slept before process continues // // for example, 1 second rate limit 100 = 100 milliseconds per call, // this causes each call to Take sleep for 100 milliseconds before continuing // // returns time when Take took place Take() time.Time }
Click to show internal directories.
Click to hide internal directories.