testhelpers

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package testhelpers defines helpers for liveness package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressManager

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

AddressManager manages http server addresses to allow running multiple http servers in parallel without conflicting addresses. It does that by changing the port after returning an address.

func NewAddressManager

func NewAddressManager() AddressManager

NewAddressManager creates and returns an AddressManager with the starting port number 27100

func (*AddressManager) GetNextAddress

func (a *AddressManager) GetNextAddress() string

getNextAddress creates an http server address in the form ":[healthCheckServerPort]" and returns it. It also increments healthCheckServerPort.

Jump to

Keyboard shortcuts

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