Documentation
¶
Index ¶
- func AuthInterceptor(expectedToken string) GRPCAuth.AuthFunc
- func LogrusStreamInterceptor(logger *logrus.Entry, reqID string, keys ...string) grpc.StreamServerInterceptor
- func LogrusUnaryInterceptor(logger *logrus.Entry, reqID string, keys ...string) grpc.UnaryServerInterceptor
- type ServerStreamWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthInterceptor ¶ added in v1.3.0
* AuthInterceptor Function for check authentication send in metadata Example: Bearer token Ref: https://github.com/grpc-ecosystem/go-grpc-middleware
func LogrusStreamInterceptor ¶ added in v1.2.0
func LogrusStreamInterceptor(logger *logrus.Entry, reqID string, keys ...string) grpc.StreamServerInterceptor
* LogrusStreamInterceptor gRPC interceptor to log stream request duration status this function will set field request_id from metadata
func LogrusUnaryInterceptor ¶ added in v1.2.0
func LogrusUnaryInterceptor(logger *logrus.Entry, reqID string, keys ...string) grpc.UnaryServerInterceptor
* //LogrusUnaryInterceptor gRPC interceptor to log unary request duration status this function will set field request_id from metadata
Types ¶
type ServerStreamWrapper ¶ added in v1.11.0
type ServerStreamWrapper struct { grpc.ServerStream Ctx context.Context }
func (*ServerStreamWrapper) Context ¶ added in v1.11.0
func (w *ServerStreamWrapper) Context() context.Context
Click to show internal directories.
Click to hide internal directories.