middleware

package
v0.0.0-...-ba4ce30 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddInterceptors

func AddInterceptors(opts []grpc.ServerOption, uInterceptors []grpc.UnaryServerInterceptor, sInterceptors []grpc.StreamServerInterceptor) []grpc.ServerOption

func AddLogging

func AddLogging(logger *zap.Logger, uInterceptors *[]grpc.UnaryServerInterceptor, sInterceptors *[]grpc.StreamServerInterceptor)

func AddRecovery

func AddRecovery(uInterceptors *[]grpc.UnaryServerInterceptor, sInterceptors *[]grpc.StreamServerInterceptor)

func PanicTracer

func PanicTracer(ctx context.Context, p interface{}) error

to handle panic and log stack trace also returns error from panic to send error-message to gateway

func ProvideGrpcMiddlewareServerOpts

func ProvideGrpcMiddlewareServerOpts() []grpc.ServerOption

Add grpc default middleware like logging and recovery

Types

This section is empty.

Jump to

Keyboard shortcuts

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