cron

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCron

func NewCron(logger logger.Logger) bindings.InputBinding

NewCron returns a new Cron event input binding.

func NewCronWithClock added in v1.10.1

func NewCronWithClock(logger logger.Logger, clk clock.Clock) bindings.InputBinding

Types

type Binding

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

Binding represents Cron input binding.

func (*Binding) Close added in v1.11.0

func (b *Binding) Close() error

func (*Binding) GetComponentMetadata added in v1.11.0

func (b *Binding) GetComponentMetadata() (metadataInfo contribMetadata.MetadataMap)

GetComponentMetadata returns the metadata of the component.

func (*Binding) Init

func (b *Binding) Init(ctx context.Context, meta 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) Read

func (b *Binding) Read(ctx context.Context, handler bindings.Handler) error

Read triggers the Cron scheduler.

Jump to

Keyboard shortcuts

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