network

package
v0.0.0-...-fb356ce Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendCertsFromPEM

func AppendCertsFromPEM(certsPEM ...string) (*x509.CertPool, error)

Types

type HostLookUpper

type HostLookUpper func(host string) (addrs []string, err error)

type HostWaiter

type HostWaiter struct {
	HostLookUpper
	Sleeper
}

func NewHostWaiter

func NewHostWaiter() HostWaiter

func (HostWaiter) Wait

func (h HostWaiter) Wait(url string, pause, retries int) error

type Sleeper

type Sleeper func(duration time.Duration)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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