cron

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCronServer

func RegisterCronServer(srv *server.Server, opts Options)

RegisterCronServer initializes the VM Leaser cron server.

func Run

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

Run runs f repeatedly, until the context is cancelled.

This method runs f based on minInterval time interval.

Types

type Options

type Options struct {
	GcpProjects []string
	ServiceEnv  *string
}

Options are server options for the cron server

Jump to

Keyboard shortcuts

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