WithSubscriptionCacheTTL sets the in-memory subscription cache TTL. Defaults to three minutes when not provided or when given a non-positive duration.
(ttl time.Duration)
| 83 | // WithSubscriptionCacheTTL sets the in-memory subscription cache TTL. Defaults |
| 84 | // to three minutes when not provided or when given a non-positive duration. |
| 85 | func WithSubscriptionCacheTTL(ttl time.Duration) Option { |
| 86 | return func(o *options) { |
| 87 | o.subscriptionCacheTTL = ttl |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | // WithHTTPClient overrides the default SSRF-safe HTTP client used to deliver |
| 92 | // push notifications. This is intended for tests that need to deliver to |