interceptor

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLanguage added in v0.1.3

func GetLanguage(ctx context.Context) (lang string)

func LogTraceID

func LogTraceID(ctx context.Context) logging.Fields

日志中添加 traceID

func Logger

func Logger() logging.Logger

Logger 使用 slog

func Recovery

func Recovery(p any) error

func ValidateParam added in v0.1.3

func ValidateParam() grpc.UnaryServerInterceptor

ValidateInterceptor 请求参数校验拦截器

func ValidateStreamParam added in v0.1.3

func ValidateStreamParam() grpc.StreamServerInterceptor

ValidateStreamInterceptor 流式请求参数校验拦截器

Types

This section is empty.

Jump to

Keyboard shortcuts

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