cron

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 8 Imported by: 0

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 New

func New(tz string) (*Cron, error)

func (*Cron) AddTask

func (c *Cron) AddTask(name, spec string, script, onSuccess, onError, finally []string, env map[string]string) (Task, error)

func (*Cron) Start

func (c *Cron) Start()

type Task

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

func (*Task) Run

func (t *Task) Run()

Jump to

Keyboard shortcuts

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