testhelpers

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConsulHealthCheckTimeout is the timeout for Consul health checks
	ConsulHealthCheckTimeout = 2 * time.Second
)

Variables

This section is empty.

Functions

func ConsulClient

func ConsulClient() (*api.Client, error)

ConsulClient creates a new Consul API client

func ConsulURL

func ConsulURL() string

ConsulURL returns the Consul URL from environment or default

func IsConsulAvailable

func IsConsulAvailable() bool

IsConsulAvailable checks if Consul is running and accessible with timeout handling

Types

This section is empty.

Jump to

Keyboard shortcuts

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