execution

package
v0.4.39 Latest Latest
Warning

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

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

Documentation

Overview

Package execution defines backend-independent execution identity and ownership.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity struct {
	ID         string `json:"id"`
	ParentID   string `json:"parentId,omitempty"`
	RootTurnID string `json:"rootTurnId"`
}

Identity identifies one invocation, independently of its reusable history or the backend's telemetry turn. RootTurnID is the owning user interaction.

type Registrar

type Registrar interface {
	RegisterExecution(context.Context, Identity) (context.Context, func())
}

Registrar registers cancellation with an explicit owner. Releasing a registration only retires that registration, never its parent or siblings.

Jump to

Keyboard shortcuts

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