runtimecontrol

package
v0.3.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package runtimecontrol owns the privileged Action persistence assembly contract. It is internal because F0 supports only framework-owned durable adapters whose transaction outcomes can be proven to the Runtime.

Index

Constants

View Source
const ServiceName = "modary.action-persistence"

ServiceName is the reserved Host service used for the atomic persistence bundle. Consumers cannot name its sealed type or recreate its service key.

Variables

View Source
var ErrTransactionManagerContract = errors.New("action transaction manager contract violation")

ErrTransactionManagerContract identifies an official transaction owner that did not execute and propagate its callback according to the Runtime contract.

Functions

This section is empty.

Types

type Persistence

type Persistence interface {
	Plans() actionpersistence.PlanStore
	Idempotency() actionpersistence.IdempotencyStore
	Transactions() TransactionManager
	// contains filtered or unexported methods
}

Persistence is the sealed, atomic persistence bundle installed by one official adapter. Keeping the three services together prevents mixed owners and prevents consumers from installing transaction control they cannot implement with the private outcome protocol.

func New

New validates and seals one complete Action persistence bundle.

type TransactionManager

type TransactionManager interface {
	WithinTransaction(context.Context, func(context.Context) error) error
}

TransactionManager is the private commit-or-rollback capability consumed by the governed Runtime. Official adapters must return framework-correlated outcome proof when an operation does not complete normally.

Jump to

Keyboard shortcuts

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