middleware

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 14 Imported by: 0

README

HTTP Middleware

This directory contains HTTP interceptors that handle request and response pre-processing.

Directory Guidelines

  • You may create subdirectories for domain-specific interceptors (e.g., auth/, logging/).
  • If there are only a few interceptors, place the .go files directly in this directory.
Example Structure
middleware
├── sub-directory                   # when hit a complexity
│   └── middleware_<group_name>_<some_action>.go
└── middleware_some_action.go       # when simple implementation

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGlobal

func DefaultGlobal(req *registry.AppRegistry, r chi.Router)

func Global

func Global(req *registry.AppRegistry, router chi.Router)

func Logger

func Logger(next http.Handler) http.Handler

func RequestID

func RequestID(next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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