WithRefresh sets the refresh interval for loldrivers dataset.
(interval time.Duration)
| 71 | |
| 72 | // WithRefresh sets the refresh interval for loldrivers dataset. |
| 73 | func WithRefresh(interval time.Duration) Option { |
| 74 | return func(o *opts) { |
| 75 | o.refreshInterval = interval |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | // WithAsyncDownload indicates if the initial request to loldrivers API |
| 80 | // is performed in a separate goroutine. |