Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRecovery ¶
func NewRecovery(recoverFunc func(w http.ResponseWriter, r *http.Request, err interface{})) func(http.Handler) http.Handler
NewRecovery creates a new instance of Recovery
Types ¶
type HostMatcher ¶
type HostMatcher struct {
// contains filtered or unexported fields
}
HostMatcher is a middleware that matches any host with the given list of hosts. It also supports regex host like *.example.com
func NewHostMatcher ¶
func NewHostMatcher(hosts []string) *HostMatcher
NewHostMatcher creates a new instance of HostMatcher
type Logger ¶
type Logger struct{}
Logger struct contains data and logic required for middleware functionality
type OpenTracing ¶
type OpenTracing struct {
// contains filtered or unexported fields
}
OpenTracing is a middleware that traces the request latency
func NewOpenTracing ¶
func NewOpenTracing(https bool) *OpenTracing
NewOpenTracing creates a new instance of OpenTracing
Click to show internal directories.
Click to hide internal directories.