ticker

package
v0.2.0-beta.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ticker is the run-until-cancelled loop shared by this codebase's periodic schedulers (backup, scheduledeploy, scheduledtask, updatecheck), extracted here so a new one doesn't add another copy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, interval time.Duration, logger *slog.Logger, label string, tick func(context.Context) error) error

Run calls tick on interval until ctx is done. A tick error is logged under label, never fatal: one failed tick must not stop the loop.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL