Documentation
¶
Index ¶
- func NewAccessLogger(log *logger.AccessLogger) grpc.UnaryServerInterceptor
- func NewOtelServerStatsHandler(opts ...otelgrpc.Option) stats.Handler
- func NewServiceContextUnaryInterceptor(options ServiceContextInterceptorOptions) grpc.UnaryServerInterceptor
- func ValidationErrorToInvalidArgument() grpc.UnaryServerInterceptor
- type ServiceContextInterceptorOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccessLogger ¶ added in v1.1.8
func NewAccessLogger(log *logger.AccessLogger) grpc.UnaryServerInterceptor
NewAccessLogger 访问日志中间件
func NewOtelServerStatsHandler ¶ added in v1.1.8
func NewServiceContextUnaryInterceptor ¶ added in v1.4.0
func NewServiceContextUnaryInterceptor(options ServiceContextInterceptorOptions) grpc.UnaryServerInterceptor
NewServiceContextUnaryInterceptor 在请求入口统一建立并注入 service.Context。
func ValidationErrorToInvalidArgument ¶ added in v1.1.7
func ValidationErrorToInvalidArgument() grpc.UnaryServerInterceptor
Types ¶
type ServiceContextInterceptorOptions ¶ added in v1.4.0
ServiceContextInterceptorOptions 定义拦截器选项。
Click to show internal directories.
Click to hide internal directories.