middleware

package
v0.0.0-...-5002bb7 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache

func Cache(next http.Handler) http.HandlerFunc

func FetchData

func FetchData() interface{}

FetchData is a placeholder function that should be implemented to fetch data from the database or another service.

func GenerateCacheKey

func GenerateCacheKey(r *http.Request) string

GenerateCacheKey is a placeholder function that should be implemented to generate a cache key based on the request URL and query parameters.

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

LoggingMiddleware logs the incoming HTTP request & its duration using structured logging.

Types

This section is empty.

Jump to

Keyboard shortcuts

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