interceptor

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxStackSize when recovering panic
	MaxStackSize = 4096
)

Variables

This section is empty.

Functions

func NewLogInterceptor

func NewLogInterceptor(logger util.Logger) grpc.UnaryServerInterceptor

NewLogInterceptor returns a log interceptor for gRPC

func NewRecovery

func NewRecovery(logger util.Logger) grpc.UnaryServerInterceptor

NewRecovery return a recover interceptor for gRPC

func UnaryInterceptorChain

func UnaryInterceptorChain(interceptors ...grpc.UnaryServerInterceptor) grpc.UnaryServerInterceptor

UnaryInterceptorChain build the multi interceptors into one interceptor chain.

Types

This section is empty.

Jump to

Keyboard shortcuts

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