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

Function WithClock

coderd/cryptokeys/rotate.go:42–46  ·  view source on GitHub ↗
(clock quartz.Clock)

Source from the content-addressed store, hash-verified

40type RotatorOption func(*rotator)
41
42func WithClock(clock quartz.Clock) RotatorOption {
43 return func(r *rotator) {
44 r.clock = clock
45 }
46}
47
48func WithKeyDuration(keyDuration time.Duration) RotatorOption {
49 return func(r *rotator) {

Callers 1

TestRotatorFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestRotatorFunction · 0.74