middleware

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package middleware provides HTTP middleware components for the web server.

Package middleware provides HTTP middleware components for the web server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chain

func Chain(middlewares ...func(http.Handler) http.Handler) func(http.Handler) http.Handler

Chain combines multiple middleware functions into a single middleware

func NewMiddleware

func NewMiddleware(logger log.Logger) func(http.Handler) http.Handler

NewMiddleware creates standard middleware for the web server

func RequestLogger

func RequestLogger(logger log.Logger) func(http.Handler) http.Handler

RequestLogger creates middleware that logs HTTP requests

Types

This section is empty.

Jump to

Keyboard shortcuts

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