eventproject

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: AGPL-3.0 Imports: 32 Imported by: 0 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

View Source
var ErrInvalidProjection = errors.New("workflow observation cannot be projected safely")

Functions

func ClassifyError

func ClassifyError(cause error) (failure appobs.Failure, present bool)

func LaneIdentity

func LaneIdentity(value session.LaneIdentity) (appobs.LaneIdentity, error)

func NormalizeRelayOrigin

func NormalizeRelayOrigin(raw string) (appobs.RelayOrigin, error)

func ObserverLossReason

func ObserverLossReason(err error) appobs.ObserverLossReason

func ProjectFault

func ProjectFault(value transferfault.Fault) (appobs.Failure, bool)

func ProjectProgress

func ProjectProgress(
	value transfer.ReceiveProgressSnapshot,
	capacityWaitVisible bool,
) (appobs.ProgressSnapshot, error)

func ProjectReceiverCauseClass

func ProjectReceiverCauseClass(value v2peer.ReceiverCauseClass) (appobs.Failure, bool)

func ProjectRelayErrorCode

func ProjectRelayErrorCode(code v2.ErrorCode) (appobs.Failure, bool)

func ProjectTransferInterruption

func ProjectTransferInterruption(value transfer.TransferInterruption) (appobs.Failure, bool)

func ProjectTransferProgress

func ProjectTransferProgress(
	receiveOperation receivecontract.OperationID,
	transferJob transfer.TransferJobID,
	progress transfer.ReceiveProgressSnapshot,
	capacityWaitVisible bool,
) (appobs.TransferProgress, error)

func ProjectionRejection

func ProjectionRejection(err error) appobs.ObservationRejection

func ReceiveFailureCode

func ReceiveFailureCode(code receive.FailureCode) (appobs.FailureCode, bool)

func RelayOrigin

func RelayOrigin(endpoint v2.RelayEndpoint) (appobs.RelayOrigin, error)

func TransferJobID

func TransferJobID(value transfer.TransferJobID) (appobs.TransferJobID, error)

func Workflow

func Workflow(workflow appobs.Workflow, envelope task.Observation, publish func(task.Observation) bool) bool

Workflow translates implementation observations before they leave the engine. Publication remains bounded and nonblocking; rejection is evidence, never a decision to stop a transfer or change its authoritative settlement.

Types

type ProjectionError

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

func (ProjectionError) Error

func (err ProjectionError) Error() string

func (ProjectionError) Reason

func (ProjectionError) Unwrap

func (err ProjectionError) Unwrap() error

type ProjectionFailureReason

type ProjectionFailureReason uint8
const (
	ProjectionUnknownEnum ProjectionFailureReason = iota + 1
	ProjectionInvalidIdentity
	ProjectionInvalidStageFields
	ProjectionEventContract
)

Jump to

Keyboard shortcuts

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