middleware

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RecoveryInterceptor

type RecoveryInterceptor struct {
	// contains filtered or unexported fields
}

RecoveryInterceptor is a struct for creating gRPC interceptors that handle panics in go

func NewRecoveryInterceptor

func NewRecoveryInterceptor(adminScope promutils.Scope) *RecoveryInterceptor

NewRecoveryInterceptor creates a new RecoveryInterceptor with metrics under the provided scope

func (*RecoveryInterceptor) StreamServerInterceptor

func (ri *RecoveryInterceptor) StreamServerInterceptor() grpc.StreamServerInterceptor

StreamServerInterceptor returns a new streaming server interceptor for panic recovery.

func (*RecoveryInterceptor) UnaryServerInterceptor

func (ri *RecoveryInterceptor) UnaryServerInterceptor() grpc.UnaryServerInterceptor

UnaryServerInterceptor returns a new unary server interceptor for panic recovery.

Jump to

Keyboard shortcuts

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