statelessx

package
v1.0.0-beta.230 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllOfWithParameters

func AllOfWithParameters[T models.Validator](fn ...func(context.Context, T) error) func(context.Context, ...any) error

func BoolFn

func BoolFn(fn func() bool) func(context.Context, ...any) bool

func EntryFunc

func EntryFunc(fn ActionFn) func(context.Context, ...any) error

func Not

func Not(fn func() bool) func() bool

func WithParameters

func WithParameters[T models.Validator](fn func(context.Context, T) error) func(context.Context, ...any) error

Types

type ActionFn

type ActionFn func(context.Context) error

func AllOf

func AllOf(fn ...ActionFn) ActionFn

allOf chains multiple action functions into a single action function, all functions will be called, regardless of their error state. The reported errors will be joined into a single error object.

Jump to

Keyboard shortcuts

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