scheduler

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	MustInit() Manager
	Init() error
	WithTimeZone(zone *time.Location) Manager
	WithTasks(tasks ...func()) Manager
	WithSupportSeconds() Manager
	StartAsync()
	StartBlocking()
}

func New

func New(cron string, opts ...Option) Manager

func NewNoop

func NewNoop(cron string) Manager

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithLogger

func WithLogger(log logger.Manager) Option

func WithName

func WithName(v string) Option

Jump to

Keyboard shortcuts

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