schedule

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package schedule provides explicit correlation lifecycle helpers for scheduled work. Independent invocations start independent workflows unless application-owned metadata is deliberately propagated.

Deprecated: use github.com/faustbrian/go-correlation/adapters/schedule. This package remains supported through the documented compatibility interval.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidOptions = errors.New("schedule correlation: invalid options")

ErrInvalidOptions reports missing scheduled-work dependencies.

Functions

This section is empty.

Types

type Adapter

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

Adapter starts independent runs and explicitly propagates scheduled jobs.

func New

func New(factory *correlation.Factory, options Options) (*Adapter, error)

New constructs a scheduled-work adapter.

func (*Adapter) Create added in v1.1.0

func (adapter *Adapter) Create() (correlation.Values, error)

Create begins an independent scheduler invocation with no implicit derived or stable workflow identity.

func (*Adapter) Enqueue

func (adapter *Adapter) Enqueue(metadata map[string]string, parent correlation.Values) (correlation.Values, error)

Enqueue creates a child scheduled-work message.

func (*Adapter) Receive added in v1.1.0

func (adapter *Adapter) Receive(metadata map[string]string, trusted bool) (correlation.Values, error)

Receive receives explicitly trusted scheduler metadata as a fresh attempt.

func (*Adapter) Run deprecated

func (adapter *Adapter) Run(metadata map[string]string, trusted bool) (correlation.Values, error)

Run receives explicitly trusted scheduler metadata as a fresh attempt.

Deprecated: use Receive.

func (*Adapter) Start deprecated

func (adapter *Adapter) Start() (correlation.Values, error)

Start begins an independent scheduler invocation with no implicit derived or stable workflow identity.

Deprecated: use Create.

type Options

type Options struct {
	Queue queuecorrelation.Options
}

Options configure optional scheduled metadata propagation.

Jump to

Keyboard shortcuts

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