Documentation
¶
Overview ¶
Package txphase owns HTTP transaction execution and COMMIT admission. Statements keep the request deadline; an admitted terminal commit owns its real outcome independently of that deadline or a subsequent disconnect.
Index ¶
- func CommitAdmitted(ctx context.Context) bool
- func CommitContext(ctx context.Context) (context.Context, error)
- func ResultContext(ctx context.Context) context.Context
- func Statements(ctx context.Context) context.Context
- func WithExecutionDeadline(ctx context.Context, timeout time.Duration) (context.Context, context.CancelFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitAdmitted ¶
CommitAdmitted reports whether this request crossed the terminal commit boundary. HTTP can stop waiting at the execution deadline before admission, while preserving the result after admission.
func CommitContext ¶
CommitContext is the only phase transition. Terminal owners call it after statement execution and arbitration, immediately before irreversible commit. Other transports retain their existing cancellation contract.
func ResultContext ¶
ResultContext preserves the admitted terminal outcome through response projection, including any entity reads required to render it. It cannot admit a commit: unadmitted requests and independent statements keep cancellation.
func Statements ¶
Statements keeps execution cancellation while preventing internal statements and independently committed batches from admitting their enclosing request.
func WithExecutionDeadline ¶
Types ¶
This section is empty.