Documentation ¶
Index ¶
- func AddInterceptors(opts []grpc.ServerOption, uInterceptors []grpc.UnaryServerInterceptor, ...) []grpc.ServerOption
- func AddLogging(logger *zap.Logger, uInterceptors *[]grpc.UnaryServerInterceptor, ...)
- func AddRecovery(uInterceptors *[]grpc.UnaryServerInterceptor, ...)
- func PanicTracer(ctx context.Context, p interface{}) error
- func ProvideGrpcMiddlewareServerOpts() []grpc.ServerOption
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.