middleware

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 10 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 ...

func NewMiddleware

func NewMiddleware(logger logger.Logger) *Middleware

NewMiddleware will create new an Middleware object

func (*Middleware) Logger

func (m *Middleware) Logger() echo.MiddlewareFunc

func (*Middleware) RequestID

func (m *Middleware) RequestID() echo.MiddlewareFunc

RequestID will search for a correlation header and set a request-level correlation id into the context. If no header is found, a new UUID will be generated.

Jump to

Keyboard shortcuts

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