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