gc

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job = func(context.Context) error

type Manager

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

manager is initialized with some cron jobs it doesn't support dynamically adding or removing jobs.

func NewManager

func NewManager(options ...Option) *Manager

func (*Manager) Start

func (mgr *Manager) Start()

func (*Manager) Stop

func (mgr *Manager) Stop()

type Option

type Option = func(*Manager)

func WithCronJob

func WithCronJob(
	name string,
	interval time.Duration,
	job Job,
) Option

Jump to

Keyboard shortcuts

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