Versions in this module Expand all Collapse all v0 v0.26.0 Apr 9, 2022 Changes in this version + type Option interface + func WithEnableH2C(enableH2C bool) Option + func WithGracePeriod(t time.Duration) Option + func WithListen(s string) Option + func WithMux(mux *http.ServeMux) Option + func WithTLSConfig(tls string) Option + type ResponseWriterWithStatus struct + func WrapResponseWriterWithStatus(w http.ResponseWriter) *ResponseWriterWithStatus + func (r *ResponseWriterWithStatus) Status() int + func (r *ResponseWriterWithStatus) WriteHeader(code int) + type Server struct + func New(logger log.Logger, reg *prometheus.Registry, comp component.Component, ...) *Server + func (s *Server) Handle(pattern string, handler http.Handler) + func (s *Server) ListenAndServe() error + func (s *Server) Shutdown(err error)