Documentation
¶
Overview ¶
Package executorhttp adapts an Effectus HTTP verb target to a Go handler.
Index ¶
- Constants
- func NewHandler(options Options, handler HandlerFunc) (http.Handler, error)
- func Permanent(err error) invocation.Outcome
- func Retryable(err error) invocation.Outcome
- func StaleFence(err error) invocation.Outcome
- func Success(result any) invocation.Outcome
- func Unknown(err error) invocation.Outcome
- type Direction
- type HandlerFunc
- type Options
- type Outcome
- type Request
Constants ¶
View Source
const ( DirectionForward = invocation.DirectionForward DirectionCompensation = invocation.DirectionCompensation )
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(options Options, handler HandlerFunc) (http.Handler, error)
NewHandler creates a strict Effectus business executor endpoint.
func Permanent ¶
func Permanent(err error) invocation.Outcome
Permanent reports a permanent business failure.
func Retryable ¶
func Retryable(err error) invocation.Outcome
Retryable reports a failure that is known not to have committed.
func StaleFence ¶
func StaleFence(err error) invocation.Outcome
StaleFence reports a rejected stale fencing token.
func Success ¶
func Success(result any) invocation.Outcome
Success reports a committed business operation.
func Unknown ¶
func Unknown(err error) invocation.Outcome
Unknown reports a failure whose commit state is not known.
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.
Click to show internal directories.
Click to hide internal directories.