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

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