MCPcopy Index your code
hub / github.com/coder/coder / WithSubscriptionCacheTTL

Function WithSubscriptionCacheTTL

coderd/webpush/webpush.go:85–89  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

83// WithSubscriptionCacheTTL sets the in-memory subscription cache TTL. Defaults
84// to three minutes when not provided or when given a non-positive duration.
85func 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

Callers 1

TestPushFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestPushFunction · 0.74