MCPcopy Create free account
hub / github.com/prometheus/common / URL

Struct URL

config/http_config.go:177–179  ·  view source on GitHub ↗

URL is a custom URL type that allows validation at configuration load time.

Source from the content-addressed store, hash-verified

175
176// URL is a custom URL type that allows validation at configuration load time.
177type URL struct {
178 *url.URL
179}
180
181// UnmarshalYAML implements the yaml.Unmarshaler interface for URLs.
182func (u *URL) UnmarshalYAML(unmarshal func(any) error) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected