Documentation ¶
Index ¶
- func NewLimitsMiddleware(maxReqDuration time.Duration, maxReqBodySizeBytes int64, maxReqsPerSecond int, ...) http.Handler
- func NewPanicRecoverMiddleware(onPanic func(interface{}, *http.Request), next http.Handler) http.Handler
- func NewRequestCountingMiddleware(requestGauge *sync.WaitGroup, next http.Handler) http.Handler
- type LimitsMiddleware
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLimitsMiddleware ¶
Types ¶
type LimitsMiddleware ¶
type LimitsMiddleware struct {
// contains filtered or unexported fields
}
func (*LimitsMiddleware) ServeHTTP ¶
func (m *LimitsMiddleware) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.