Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMetricsMiddleware ¶
func NewMetricsMiddleware(registerer prometheus.Registerer) *metricsMiddleware
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option overrides behavior of Server.
func WithGracePeriod ¶
WithGracePeriod sets shutdown grace period for HTTP server. Server waits connections to drain for specified amount of time.
func WithListen ¶
WithListen sets address to listen for HTTP server. Server accepts incoming TCP connections on given address.
Click to show internal directories.
Click to hide internal directories.