MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Validate

Method Validate

config.go:138–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136}
137
138func (c *Config) Validate() error {
139 if c.Monitoring.Prometheus.Enabled() && c.Monitoring.Prometheus.Bind == c.Server.Bind {
140 return prometheus.IMGPROXY_PROMETHEUS_BIND.Errorf("should be different than IMGPROXY_BIND: %s", c.Server.Bind)
141 }
142
143 return nil
144}

Callers 1

NewFunction · 0.45

Calls 2

ErrorfMethod · 0.80
EnabledMethod · 0.65

Tested by

no test coverage detected