check / check (push) Waiting to run
main's tree, with next merged on 26 October, as one commit onto prod, on sneak's order. Model: opus-5-5 Co-authored-by: clawbot <clawbot@noreply.example.org>
24 lines
650 B
Go
24 lines
650 B
Go
package server
|
|
|
|
import "github.com/go-chi/chi/v5"
|
|
|
|
// Router exposes the router to the external tests, which add routes
|
|
// of their own to it after SetupRoutes.
|
|
func (s *Server) Router() *chi.Mux {
|
|
return s.router
|
|
}
|
|
|
|
// MaxRequestBodyBytes exposes the router-wide body limit to the
|
|
// external tests.
|
|
const MaxRequestBodyBytes = maxRequestBodyBytes
|
|
|
|
// MetricsRequestsPerMinute exposes the /metrics rate limit to the
|
|
// external tests.
|
|
const MetricsRequestsPerMinute = metricsRequestsPerMinute
|
|
|
|
// ListenAddr exposes the address the server listens on to the
|
|
// external tests.
|
|
func (s *Server) ListenAddr() string {
|
|
return s.newHTTPServer().Addr
|
|
}
|