scheduler

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() ctx.ServicePackage

Types

type Locker

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

func (*Locker) Health

func (instance *Locker) Health() health.ServiceHealth

func (*Locker) Init

func (instance *Locker) Init()

func (*Locker) Lock

func (instance *Locker) Lock(context context.Context, key string) (gocron.Lock, error)

type Scheduler

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

func (*Scheduler) AfterStart

func (instance *Scheduler) AfterStart()

func (*Scheduler) BeforeStop

func (instance *Scheduler) BeforeStop()

func (*Scheduler) Init

func (instance *Scheduler) Init()

func (*Scheduler) RunScheduledTaskImmediate

func (instance *Scheduler) RunScheduledTaskImmediate(key string) error

func (*Scheduler) ScheduleTaskCron

func (instance *Scheduler) ScheduleTaskCron(cron string, key string, task func()) (*gocron.Job, error)

Jump to

Keyboard shortcuts

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