(ctx context.Context, logger slog.Logger, ps Pubsub)
| 35 | } |
| 36 | |
| 37 | func 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. |
| 42 | func NewWatchdogWithClock(ctx context.Context, logger slog.Logger, ps Pubsub, c quartz.Clock) *Watchdog { |
no test coverage detected