middleware

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 1 Imported by: 3

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 是MVC/gRPC传输中间件.

func Chain

func Chain(m ...Middleware) Middleware

Chain 返回指定服务节点的链式处理程序的中间件.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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