cron

package
v0.2.25 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 4 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 interface {
	Key() string
	Spec() string
	cron.Job
}

type Manger

type Manger struct {
	Closed chan struct{}
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Manger

func (*Manger) Add

func (m *Manger) Add(job Job)

func (*Manger) Entries

func (m *Manger) Entries() []cron.Entry

func (*Manger) Remove

func (m *Manger) Remove(key string)

func (*Manger) Start

func (m *Manger) Start()

func (*Manger) Stop

func (m *Manger) Stop()

type Option

type Option func(m *Manger)

func WithErrChan

func WithErrChan(ch chan error) Option

Jump to

Keyboard shortcuts

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