middleware

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogOptions

type LogOptions struct {
	Formatter      logrus.Formatter
	EnableStarting bool
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL