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

Struct URL

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

160
161// URL is a custom URL type that allows validation at configuration load time.
162type URL struct {
163 *url.URL
164}
165
166// UnmarshalYAML implements the yaml.Unmarshaler interface for URLs.
167func (u *URL) UnmarshalYAML(unmarshal func(interface{}) error) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected