healthurl

package
v0.0.11-dev Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildUnixBaseURL

func BuildUnixBaseURL(socketPath string) string

func NormalizeBaseURL

func NormalizeBaseURL(rawHealthURL string) string

Types

type Target

type Target struct {
	BaseURL        string
	RequestBaseURL string
	UnixSocketPath string
}

func Parse

func Parse(rawURL string) (Target, error)

func (Target) HTTPClient

func (t Target) HTTPClient(timeout time.Duration) (*http.Client, error)

func (Target) RequestURL

func (t Target) RequestURL(path string) string

func (Target) URL

func (t Target) URL(path string) string

Jump to

Keyboard shortcuts

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