middleware

package
v5.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "User-Agent"

UserAgent is the key

Variables

This section is empty.

Functions

func BuildLogger

func BuildLogger() (logger *zap.Logger, err error)

BuildLogger sets up zap logger config

func ZapLogger

func ZapLogger(l *zap.Logger) func(next http.Handler) http.Handler

ZapLogger is a middleware that logs the start and end of each request by zap

Types

This section is empty.

Jump to

Keyboard shortcuts

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