scheduler

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 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 ScheduleHandler

type ScheduleHandler func(id string, data interface{})

type Scheduler added in v0.1.1

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

func NewScheduler added in v0.1.1

func NewScheduler(name string) *Scheduler

func (*Scheduler) Run added in v0.1.1

func (s *Scheduler) Run(handler ScheduleHandler)

func (*Scheduler) Schedule added in v0.1.1

func (s *Scheduler) Schedule(delay time.Duration, data interface{}) error

Jump to

Keyboard shortcuts

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