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

Function WithClock

coderd/externalauth/gitprovider/gitprovider.go:27–31  ·  view source on GitHub ↗

WithClock sets the clock used by the provider. Defaults to quartz.NewReal() if not provided.

(c quartz.Clock)

Source from the content-addressed store, hash-verified

25// WithClock sets the clock used by the provider. Defaults to
26// quartz.NewReal() if not provided.
27func WithClock(c quartz.Clock) Option {
28 return func(o *providerOptions) {
29 o.clock = c
30 }
31}
32
33// PRState is the normalized state of a pull/merge request across
34// all providers.

Callers 1

TestGitLabRateLimitFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestGitLabRateLimitFunction · 0.74