serverinterceptor

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package serverinterceptor provides ...

Package serverinterceptor provides ...

Index

Constants

This section is empty.

Variables

View Source
var StreamTraceInterceptor = otelgrpc.StreamServerInterceptor

StreamTraceInterceptor alias otelgrpc.StreamServerInterceptor

View Source
var UnaryTraceInterceptor = otelgrpc.UnaryServerInterceptor

UnaryTraceInterceptor alias otelgrpc.UnaryServerInterceptor

Functions

func StreamServerInterceptor

func StreamServerInterceptor(opts ...Option) grpc.StreamServerInterceptor

StreamServerInterceptor returns a new streaming server interceptor for panic recovery.

func UnaryServerInterceptor

func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor

UnaryServerInterceptor returns a new unary server interceptor for panic recovery.

Types

type HandlerFunc

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

HandlerFunc recover handler func

type Option

type Option func(*options)

Option recovery option

func WithHandler

func WithHandler(h HandlerFunc) Option

WithHandler panic handler

Jump to

Keyboard shortcuts

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