grpc

package
v0.0.0-...-2abc404 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryAndSetTracingId

func QueryAndSetTracingId(ctx context.Context, name string)

QueryAndSetTracingId -- проверяет наличие уникального ид запроса в контексте, и устанавливает при отсутствии

func StreamLoggerInterceptor

func StreamLoggerInterceptor(lgr logger.Loggable) grpc.StreamServerInterceptor

StreamLoggerInterceptor returns a new unary server interceptors that adds zap.Logger to the context.

func StreamTracingInterceptor

func StreamTracingInterceptor(lgr logger.Loggable) grpc.StreamServerInterceptor

StreamTracingInterceptor -- отслеживает наличие уникального идента запроса и создает его в случае отсутствия

func UnaryLoggerInterceptor

func UnaryLoggerInterceptor(lgr logger.Loggable) grpc.UnaryServerInterceptor

UnaryLoggerInterceptor returns a new unary server interceptors that adds zap.Logger to the context.

func UnaryTracingInterceptor

func UnaryTracingInterceptor(lgr logger.Loggable) grpc.UnaryServerInterceptor

UnaryTracingInterceptor -- отслеживает наличие уникального идента запроса и создает его в случае отсутствия

Types

This section is empty.

Jump to

Keyboard shortcuts

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