executorhttp

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 5 Imported by: 0 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 executorhttp preserves the v0.3 HTTP business-executor handler API.

Index

Constants

View Source
const (
	DirectionForward      = invocation.DirectionForward
	DirectionCompensation = invocation.DirectionCompensation
)

Variables

View Source
var Permanent = root.Permanent
View Source
var Retryable = root.Retryable
View Source
var StaleFence = root.StaleFence
View Source
var Success = root.Success
View Source
var Unknown = root.Unknown

Functions

func NewHandler

func NewHandler(options Options, handler HandlerFunc) (http.Handler, error)

NewHandler creates a v0.3-compatible HTTP business executor endpoint. It adapts the frozen request shape to the canonical root handler.

Types

type Direction

type Direction = invocation.Direction

Direction identifies forward and compensation calls.

type HandlerFunc

type HandlerFunc func(context.Context, Request) Outcome

HandlerFunc performs one idempotent business operation.

type Options

type Options = root.Options

Options controls the HTTP boundary.

type Outcome

type Outcome = invocation.Outcome

Outcome is the explicit result returned by a business executor.

type Request

type Request struct {
	Arguments    map[string]any
	Metadata     invocation.Context
	ArgumentHash string
	ContractHash string
}

Request contains business arguments and immutable Effectus metadata. Its field order and types are the v0.3 contract and support positional literals written against that release.

Jump to

Keyboard shortcuts

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