waiter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wait

func Wait(check Check, opts ...Option) error

Wait waits for end up of check execution.

func WaitWithContext added in v1.1.0

func WaitWithContext(ctx context.Context, check Check, opts ...Option) error

WaitWithContext waits for end up of check execution.

Types

type Check

type Check func(ctx context.Context) bool

Check represents the checker's check method.

type Option

type Option func(s *options)

Option configures an options

func WithInterval

func WithInterval(interval time.Duration) Option

WithInterval configures time duration for each of checking interval

func WithInvertCheck

func WithInvertCheck(invertCheck bool) Option

WithInvertCheck configures invert checking

func WithTimeout

func WithTimeout(timeout time.Duration) Option

WithTimeout configures a time limit for whole of checking

Jump to

Keyboard shortcuts

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