Documentation

Overview

    Package cron can runs functions periodically.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func Group

    func Group(ctx context.Context, replicas int, minInterval time.Duration, f func(ctx context.Context, replica int) error)

      Group runs multiple cron jobs concurrently. See also Run function.

      func Run

      func Run(ctx context.Context, minInterval time.Duration, f func(context.Context) error)

        Run runs f repeatedly, until the context is cancelled.

        Ensures f is not called too often (minInterval).

        Types

        This section is empty.

        Source Files