Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCorrelationMw ¶
func NewCorrelationMw(headerName string) mux.MiddlewareFunc
func NewRecoveryMw ¶
func NewRecoveryMw() mux.MiddlewareFunc
Types ¶
type CorrelationMw ¶
type CorrelationMw struct {
// contains filtered or unexported fields
}
func NewCorrelation ¶
func NewCorrelation(headerName string, next http.Handler) *CorrelationMw
func (*CorrelationMw) ServeHTTP ¶
func (mw *CorrelationMw) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CorsMw ¶
type CorsMw struct {
// contains filtered or unexported fields
}
type LoggingMw ¶
type LoggingMw struct {
// contains filtered or unexported fields
}
func NewLogging ¶
Called by the router for each request
type RecoveryMw ¶
type RecoveryMw struct {
// contains filtered or unexported fields
}
func NewRecovery ¶
func NewRecovery(next http.Handler) *RecoveryMw
func (*RecoveryMw) ServeHTTP ¶
func (mw *RecoveryMw) ServeHTTP(rw http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.