Help us shape the future of Go! Take the 2026 Go Developer Survey

cron

package
v0.2.52 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronController

type CronController struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(ctx context.Context, pu *processor.Unit, queue cronq.Queue) *CronController

NewController builds the cron controller around an opened cron Queue (the scheduler enqueues onto it; the worker drains it). Mirrors controlpublish.NewController(ctx, pu, sink).

func (*CronController) Start

func (cc *CronController) Start()

Start launches the worker (drains the queue, dispatches) and the scheduler (wall-clock-aligned ticks, enqueues per target). No-op when the cron personality is disabled or no queue is wired (data-plane-only chassis / tests).

func (*CronController) Stop

func (cc *CronController) Stop()

Jump to

Keyboard shortcuts

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