Documentation
¶
Overview ¶
Package executorhttp preserves the v0.3 HTTP business-executor handler API.
Index ¶
Constants ¶
const ( DirectionForward = invocation.DirectionForward DirectionCompensation = invocation.DirectionCompensation )
Variables ¶
var Permanent = root.Permanent
var Retryable = root.Retryable
var StaleFence = root.StaleFence
var Success = root.Success
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 ¶
HandlerFunc performs one idempotent business operation.
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.