Documentation ¶
Index ¶
- func AuthInterceptor(expectedToken string) grpc_auth.AuthFunc
- func LogrusStreamInterceptor(logger *logrus.Entry) grpc.StreamServerInterceptor
- func LogrusUnaryInterceptor(logger *logrus.Entry) grpc.UnaryServerInterceptor
- func ValidateMetadataKeyStreamInterceptor(keys ...string) grpc.StreamServerInterceptor
- func ValidateMetadataKeyUnaryInterceptor(keys ...string) grpc.UnaryServerInterceptor
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) grpc.StreamServerInterceptor
LogrusStreamInterceptor gRPC interceptor to log stream request duration status
func LogrusUnaryInterceptor ¶ added in v1.2.0
func LogrusUnaryInterceptor(logger *logrus.Entry) grpc.UnaryServerInterceptor
LogrusUnaryInterceptor gRPC interceptor to log unary request duration status
func ValidateMetadataKeyStreamInterceptor ¶ added in v1.2.0
func ValidateMetadataKeyStreamInterceptor(keys ...string) grpc.StreamServerInterceptor
ValidateMetadataKeyStreamInterceptor Function used to check metadata key included in request
func ValidateMetadataKeyUnaryInterceptor ¶ added in v1.2.0
func ValidateMetadataKeyUnaryInterceptor(keys ...string) grpc.UnaryServerInterceptor
ValidateMetadataKeyUnaryInterceptor Function used to check metadata key included in request
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.