middleware

package
v0.0.0-...-f83f314 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPRequestLog

type HTTPRequestLog struct {
	Method        string
	Path          string
	UserAgent     string
	RemoteAddress string
	Payload       string
	Header        http.Header
}

type HTTPResponseLog

type HTTPResponseLog struct {
	Method  string
	Payload string
	Header  http.Header
}

type Middleware

type Middleware struct {
	// contains filtered or unexported fields
}

func NewMiddleware

func NewMiddleware(log logger.Logger) *Middleware

func (*Middleware) LoggerRequest

func (m *Middleware) LoggerRequest(next http.Handler) http.Handler

func (*Middleware) LoggerResponse

func (m *Middleware) LoggerResponse(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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