cron

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseEvent

type BaseEvent struct {
	Time time.Time
}

func (*BaseEvent) SetTime

func (b *BaseEvent) SetTime(t time.Time)

type CronService

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

func Service

func Service() *CronService

func (*CronService) Restart

func (c *CronService) Restart() bool

func (*CronService) Run

func (c *CronService) Run(ctx context.Context, k *kernel.Kernel) error

func (*CronService) Schedule

func (c *CronService) Schedule(cron string, e Event) *CronService

type Event

type Event interface {
	event.Event
	SetTime(t time.Time)
}

Jump to

Keyboard shortcuts

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