middleware

package
v0.0.0-...-f4e75d1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLog

func AccessLog(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

AccessLog 访问日志

func ClientTracing

func ClientTracing() grpc.UnaryClientInterceptor

ClientInterceptor grpc client wrapper

func ErrorLog

func ErrorLog(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

ErrorLog 错误日志

func Recovery

func Recovery(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

Recovery 异常捕获

func ServerTracing

func ServerTracing(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

func StreamContextTimeout

func StreamContextTimeout() grpc.StreamClientInterceptor

StreamContextTimeout 流式调用客户端拦截器

func UnaryContextTimeout

func UnaryContextTimeout() grpc.UnaryClientInterceptor

UnaryContextTimeout 一元调用客户端拦截器

Types

This section is empty.

Jump to

Keyboard shortcuts

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