cron

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 4 Imported by: 1

README

cron

A cron jobs

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cron

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

func NewCron

func NewCron() *Cron

func (*Cron) Add

func (t *Cron) Add(nextFunc NextFunc, doFunc DoFunc) bool

func (*Cron) AddWithCancel

func (t *Cron) AddWithCancel(nextFunc NextFunc, doFunc DoFunc) (cancelFunc DoFunc, ok bool)

func (*Cron) Wait

func (t *Cron) Wait()

type DoFunc

type DoFunc func()

type NextFunc

type NextFunc func(now time.Time) (time.Time, bool)

func Order

func Order(ts ...time.Time) NextFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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