schedule

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Type       string                 `yaml:"type"`
	Properties map[string]interface{} `yaml:"properties"`
}

type Constant

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

func (*Constant) Channel

func (c *Constant) Channel() chan bool

func (*Constant) Start

func (c *Constant) Start()

type ConstantConfig

type ConstantConfig struct {
	Interval int `yaml:"interval"`
}

type Cron

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

func (*Cron) Channel

func (c *Cron) Channel() chan bool

func (*Cron) Start

func (c *Cron) Start()

type CronConfig

type CronConfig struct {
	Spec string `yaml:"spec"`
}

type Schedule

type Schedule interface {
	Start()
	Channel() chan bool
}

func New

func New(scheduleType string, conf map[string]interface{}) (Schedule, error)

Jump to

Keyboard shortcuts

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