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.
Click to show internal directories.
Click to hide internal directories.