writegate

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

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 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