datasource

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

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 DSOpts

type DSOpts interface {
	VerboseLogging() bool
	SeqNr() uint64
	ConfigDigest() ocrtypes.ConfigDigest
	ObservationTimestamp() time.Time
	LifeCycleStage() llotypes.LifeCycleStage
}

DSOpts is the per-round data-source options passed to DataSource.Observe. It is shared across all LLO plugin versions (v30, v31, ...): it carries only the version-agnostic round context the data source and telemetry paths need.

Lifecycle is exposed directly via LifeCycleStage() rather than by threading a previous outcome: v30 decodes it from the previous outcome and v31 reads it from the KeyValueState, but the data source only ever needs the resulting stage (to gate pipeline observations on the Production instance).

func NewDSOpts

func NewDSOpts(
	verboseLogging bool,
	seqNr uint64,
	configDigest ocrtypes.ConfigDigest,
	observationTimestamp time.Time,
	lifeCycleStage llotypes.LifeCycleStage,
) DSOpts

NewDSOpts builds the shared DSOpts value passed to DataSource.Observe.

type DataSource

type DataSource interface {
	Observe(ctx context.Context, streamValues protocol.StreamValues, opts DSOpts) error
}

DataSource observes stream values. For each known streamID, Observe should set the observed value in the passed protocol.StreamValues. Unknown/failed streams should be left unset. Shared across all LLO plugin versions.

Jump to

Keyboard shortcuts

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