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 ¶
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.
Click to show internal directories.
Click to hide internal directories.