cron

package
v1.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binding

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

Binding represents Cron input binding

func NewCron

func NewCron(logger logger.Logger) *Binding

NewCron returns a new Cron event input binding

func (*Binding) Init

func (b *Binding) Init(metadata bindings.Metadata) error

Init initializes the Cron binding Examples from https://godoc.org/github.com/robfig/cron:

"15 * * * * *" - Every 15 sec
"0 30 * * * *" - Every 30 min

func (*Binding) Invoke

Invoke exposes way to stop previously started cron

func (*Binding) Operations

func (b *Binding) Operations() []bindings.OperationKind

Operations method returns the supported operations by this binding

func (*Binding) Read

func (b *Binding) Read(handler func(*bindings.ReadResponse) ([]byte, error)) error

Read triggers the Cron scheduler

Jump to

Keyboard shortcuts

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