package middleware import ( "net/http" "time" ) // The /metrics rate limit, exported so the tests can count requests // against it. const ( MetricsRequestLimit = metricsRequestLimit MetricsRequestWindow time.Duration = metricsRequestWindow ) // RealIP is realIP, exported so the tests can check which address it // takes as the client's. func RealIP(r *http.Request) string { return realIP(r) }