Documentation ¶
Index ¶
- func InstallPanicHandler(handler PanicHandler)
- func LogPanicDump(ctx context.Context, r interface{})
- func StreamServerInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, ...) (err error)
- func UnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error)
- type PanicHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallPanicHandler ¶
func InstallPanicHandler(handler PanicHandler)
func LogPanicDump ¶
LogPanicDump is a PanicHandler which dumps stack trace.
func StreamServerInterceptor ¶
func StreamServerInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) (err error)
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)
Types ¶
type PanicHandler ¶
Click to show internal directories.
Click to hide internal directories.