middleware

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delay

func Delay(next http.Handler) http.Handler

for test

func JsonResponse

func JsonResponse(next http.Handler) http.Handler

func Recoverer

func Recoverer(next http.Handler) http.Handler

Recoverer 自定义go-chi框架的middleware.Recoverer函数 接收到自定义panic将响应客户端{"code": 1xx, "message": ""} Alternatively, look at https://github.com/go-chi/httplog middleware pkgs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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