probe

package
v0.0.0-...-31e061d Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package probe provides a function for waiting for a server endpoint to become available.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForHealthy

func WaitForHealthy(ctx context.Context, u *url.URL) error

WaitForHealthy polls a URL repeatedly until the server responds with a non-server-error status, the context is canceled, or the context's deadline is met. WaitForHealthy returns an error in the latter two cases.

Types

This section is empty.

Jump to

Keyboard shortcuts

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