cron

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 4 Imported by: 3 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Schedule corresponds to the JSON schema field "schedule".
	Schedule string `json:"schedule" yaml:"schedule" mapstructure:"schedule"`
}

func (Config) New

func (*Config) UnmarshalJSON

func (j *Config) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Payload

type Payload struct {
	// Time that cron trigger's task execution had been scheduled to occur
	// (RFC3339Nano formatted)
	ScheduledExecutionTime string `json:"ScheduledExecutionTime" yaml:"ScheduledExecutionTime" mapstructure:"ScheduledExecutionTime"`
}

func (*Payload) UnmarshalJSON

func (j *Payload) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

type PayloadCap

type PayloadCap interface {
	sdk.CapDefinition[Payload]
	ScheduledExecutionTime() sdk.CapDefinition[string]
	// contains filtered or unexported methods
}

func ConstantPayload

func ConstantPayload(value Payload) PayloadCap

func NewPayloadFromFields

func NewPayloadFromFields(
	scheduledExecutionTime sdk.CapDefinition[string]) PayloadCap

func PayloadWrapper

func PayloadWrapper(raw sdk.CapDefinition[Payload]) PayloadCap

PayloadWrapper allows access to field from an sdk.CapDefinition[Payload]

type Trigger

type Trigger struct {
	// Config corresponds to the JSON schema field "config".
	Config Config `json:"config" yaml:"config" mapstructure:"config"`

	// Outputs corresponds to the JSON schema field "outputs".
	Outputs Payload `json:"outputs" yaml:"outputs" mapstructure:"outputs"`
}

A trigger that uses a cron schedule to run periodically at fixed times, dates, or intervals.

func (*Trigger) UnmarshalJSON

func (j *Trigger) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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