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

Function NewWatchdog

coderd/database/pubsub/watchdog.go:37–39  ·  view source on GitHub ↗
(ctx context.Context, logger slog.Logger, ps Pubsub)

Source from the content-addressed store, hash-verified

35}
36
37func NewWatchdog(ctx context.Context, logger slog.Logger, ps Pubsub) *Watchdog {
38 return NewWatchdogWithClock(ctx, logger, ps, quartz.NewReal())
39}
40
41// NewWatchdogWithClock returns a watchdog with the given clock. Product code should always call NewWatchDog.
42func NewWatchdogWithClock(ctx context.Context, logger slog.Logger, ps Pubsub, c quartz.Clock) *Watchdog {

Callers 1

ServerMethod · 0.92

Calls 1

NewWatchdogWithClockFunction · 0.85

Tested by

no test coverage detected