middleware

package
v0.0.0-...-961a225 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(ctx context.Context, req interface{}) (interface{}, error)

Handler 定义了中间件调用的处理程序。

type Middleware

type Middleware func(Handler) Handler

Middleware 是 HTTP/gRPC 传输中间件。

func Chain

func Chain(m ...Middleware) Middleware

Chain 返回一个中间件,该中间件指定了端点的链式处理程序。

Directories

Path Synopsis
auth
jwt

Jump to

Keyboard shortcuts

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