grpc

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthInterceptor added in v1.3.0

func AuthInterceptor(expectedToken string) grpc_auth.AuthFunc

* 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, 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, keys ...string) grpc.UnaryServerInterceptor

* //LogrusUnaryInterceptor gRPC interceptor to log unary request duration status this function will set field request_id from metadata

Types

This section is empty.

Jump to

Keyboard shortcuts

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