writegate

package
v0.2.0-rc.18 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 2 Imported by: 1 module, 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

Overview

Package writegate lets runtime orchestration guard an adapter's prepared provider write.

Index

Constants

This section is empty.

Variables

View Source
var ErrOutcomeUnknown = xerror.ReplayUnsafe().WithPublicDetail("The existing write claim has no confirmed outcome. Recovery cannot dispatch another writer; reconcile the provider effect first.")

ErrOutcomeUnknown refuses to replace a writer whose effect remains unresolved.

View Source
var ErrPreparationFailed = xerror.New(xerror.KindInvalidInput, "SINK_CONFIGURATION_INVALID", "sink configuration is invalid")

ErrPreparationFailed preserves a safe local failure across execution-worker transport.

View Source
var ErrReconcileOnly = xerror.New(xerror.KindUnavailable, "CONNECTOR_WRITE_RECONCILE_ONLY", "claimed write requires readback")

ErrReconcileOnly requests readback of a claimed effect without provider dispatch.

View Source
var ErrSkipped = xerror.New(xerror.KindUnavailable, "CONNECTOR_WRITE_SKIPPED", "connector write skipped")

ErrSkipped stops provider dispatch when a completed effect is reused.

Functions

func BeforeWrite

func BeforeWrite(ctx context.Context) error

BeforeWrite runs after local preparation and immediately before provider dispatch. Standalone connector executions have no runtime effect guard.

func HasGuard

func HasGuard(ctx context.Context) bool

HasGuard identifies sink writes that require admission at the provider boundary.

func WithBeforeWrite

func WithBeforeWrite(ctx context.Context, guard func(context.Context) error) context.Context

WithBeforeWrite installs the durable-effect guard for this sink execution.

Types

This section is empty.

Jump to

Keyboard shortcuts

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