scheduler

package
v0.0.0-...-e01acf0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process func()

func (Process) GetName

func (p Process) GetName() string

type Scheduler

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

func NewScheduler

func NewScheduler() *Scheduler

func (*Scheduler) AddProcessWithInterval

func (sch *Scheduler) AddProcessWithInterval(process Process, interval time.Duration)

func (*Scheduler) AddProcessWithPeriod

func (sch *Scheduler) AddProcessWithPeriod(process Process, period time.Duration)

func (*Scheduler) EveryDayAt

func (sch *Scheduler) EveryDayAt(process Process, hours int, minutes int)

func (*Scheduler) EveryMonthAt

func (sch *Scheduler) EveryMonthAt(process Process, day int, hours int, minutes int)

func (*Scheduler) Run

func (sch *Scheduler) Run() error

func (*Scheduler) Stop

func (sch *Scheduler) Stop() error

func (*Scheduler) Title

func (sch *Scheduler) Title() string

Jump to

Keyboard shortcuts

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