waiter

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsAppError

func AsAppError(err error) (*ecerrors.AppError, bool)

Types

type Observation

type Observation struct {
	State string
	Value any
}

func Wait

func Wait(ctx context.Context, options Options) (Observation, error)

type Options

type Options struct {
	Target        string
	FailureStates []string
	Interval      time.Duration
	Timeout       time.Duration
	MaxAttempts   int
	Probe         Probe
}

type Probe

type Probe func(context.Context) (Observation, error)

Jump to

Keyboard shortcuts

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