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 ¶
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.
Click to show internal directories.
Click to hide internal directories.