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

Function WithClock

coderd/webpush/webpush.go:77–81  ·  view source on GitHub ↗

WithClock sets the clock used by the subscription cache. Defaults to a real clock when not provided.

(clock quartz.Clock)

Source from the content-addressed store, hash-verified

75// WithClock sets the clock used by the subscription cache. Defaults to a real
76// clock when not provided.
77func WithClock(clock quartz.Clock) Option {
78 return func(o *options) {
79 o.clock = clock
80 }
81}
82
83// WithSubscriptionCacheTTL sets the in-memory subscription cache TTL. Defaults
84// to three minutes when not provided or when given a non-positive duration.

Callers 1

TestPushFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestPushFunction · 0.74