selvedge

package
v1.10.0-alpha.25 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 8 Imported by: ? modules, 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 selvedge binds execution activities to native Selvedge apps and workflow scopes. Applications retain ownership of app lifecycle, workflows, submission, transactions, and backend-specific policies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register[I, O any](activities *Activities, activity execution.Activity[I, O], handler func(context.Context, I) (O, error), options sv.ActivityOptions) error

Register installs a typed activity with native Selvedge options and codecs. Its generic signature preserves the input and output types for Selvedge; Activities therefore does not implement execution.ActivityRegistrar.

Types

type Activities

type Activities struct {
	// contains filtered or unexported fields
}

Activities registers named handlers on one caller-owned Selvedge app. Register all handlers before starting the app so recovery can find them.

func New

func New(app *sv.App) (*Activities, error)

New binds activity registration to app without starting or stopping it.

func (*Activities) Scope

Scope binds execution to ctx, including its cancellation and detached-scope behavior. The context.Context arguments of execution calls do not replace this native workflow context. Futures retain the scope that scheduled them.

Jump to

Keyboard shortcuts

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