scheduler

package
v0.2.10-5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 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 New added in v0.2.11

func New(m lifecycle.Lifecycle, log log.Logger) *Scheduler

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))

func (*Scheduler) Start

func (s *Scheduler) Start()

func (*Scheduler) Stop

func (s *Scheduler) Stop()

Jump to

Keyboard shortcuts

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