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

Struct URL

config/http_config.go:175–177  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected