scheduler

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "scheduler"

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

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

func (*Scheduler) Cron

func (s *Scheduler) Cron(name string, expr string, fn func(name string))

func (*Scheduler) Every

func (s *Scheduler) Every(name string, dur time.Duration, fn func(name string))

func (*Scheduler) Once

func (s *Scheduler) Once(name string, delay time.Duration, fn func(name string))

Jump to

Keyboard shortcuts

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