Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogOptions ¶
LogOptions logging middleware options
type LoggingMiddleware ¶
type LoggingMiddleware struct {
// contains filtered or unexported fields
}
LoggingMiddleware is a middleware handler that logs the request as it goes in and the response as it goes out.
func NewLogger ¶
func NewLogger(log *logrus.Entry, store *sessions.CookieStore) *LoggingMiddleware
NewLogger returns a new *LoggingMiddleware, yay!
func (*LoggingMiddleware) Middleware ¶
func (m *LoggingMiddleware) Middleware(next http.Handler) http.Handler
Middleware implement mux middleware interface
Click to show internal directories.
Click to hide internal directories.