executorhttp

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package executorhttp adapts an Effectus HTTP verb target to a Go handler.

Index

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

HandlerFunc performs one idempotent business operation using the canonical invocation request and outcome vocabulary.

type Options

type Options struct {
	MaxRequestBytes int64
}

Options controls the HTTP boundary. Zero selects a 1 MiB request limit. Limits must be nonnegative and smaller than MaxInt64 to permit overflow detection.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL