Documentation
¶
Overview ¶
Package executorhttp adapts an Effectus HTTP verb target to a Go handler.
Index ¶
- 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 HandlerFunc
- type Options
Constants ¶
This section is empty.
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 HandlerFunc ¶
type HandlerFunc func(context.Context, invocation.Request) invocation.Outcome
HandlerFunc performs one idempotent business operation using the canonical invocation request and outcome vocabulary.
Click to show internal directories.
Click to hide internal directories.