wait

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentOutputLevel = INFO

Functions

func Println added in v0.2.0

func Println(a ...any)

Types

type CompositeMultiWaiter

type CompositeMultiWaiter struct{}

func (CompositeMultiWaiter) Wait

func (c CompositeMultiWaiter) Wait(ctx context.Context, resource string) error

func (CompositeMultiWaiter) WaitMulti

func (c CompositeMultiWaiter) WaitMulti(resources []string, timeout time.Duration) error

type DnsWaiter

type DnsWaiter struct{}

func (DnsWaiter) Wait

func (h DnsWaiter) Wait(ctx context.Context, hostname string) error

type HttpWaiter

type HttpWaiter struct{}

func (HttpWaiter) Wait

func (h HttpWaiter) Wait(ctx context.Context, url string) error

type LogWaiterDecorator added in v0.2.0

type LogWaiterDecorator struct {
	// contains filtered or unexported fields
}

LogWaiterDecorator wraps a NetWaiter and adds logging around Wait()

func (LogWaiterDecorator) Wait added in v0.2.0

func (d LogWaiterDecorator) Wait(ctx context.Context, resource string) error

type NetWaiter

type NetWaiter interface {
	Wait(ctx context.Context, resource string) error
}

type OutputLevel added in v0.2.0

type OutputLevel int
const (
	SILENT OutputLevel = iota
	INFO
)

type TcpWaiter

type TcpWaiter struct{}

func (TcpWaiter) Wait

func (h TcpWaiter) Wait(ctx context.Context, address string) error

Jump to

Keyboard shortcuts

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