middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

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

Middleware of logger

func NewLogger

func NewLogger(logger *zap.Logger) *Middleware

NewLogger returns middleware

func (*Middleware) HTTPLogger

func (m *Middleware) HTTPLogger(handler http.Handler) http.Handler

HTTPLogger creates a middleware that affixes the correlation Id to the logger, and as well logs request specific data

Jump to

Keyboard shortcuts

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