Documentation ¶
Index ¶
- func AccessLog(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func ClientTracing() grpc.UnaryClientInterceptor
- func ErrorLog(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func Recovery(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func ServerTracing(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func StreamContextTimeout() grpc.StreamClientInterceptor
- func UnaryContextTimeout() grpc.UnaryClientInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessLog ¶
func AccessLog(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
AccessLog 访问日志
func ClientTracing ¶
func ClientTracing() grpc.UnaryClientInterceptor
ClientInterceptor grpc client wrapper
func ErrorLog ¶
func ErrorLog(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
ErrorLog 错误日志
func Recovery ¶
func Recovery(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
Recovery 异常捕获
func ServerTracing ¶
func ServerTracing(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
func StreamContextTimeout ¶
func StreamContextTimeout() grpc.StreamClientInterceptor
StreamContextTimeout 流式调用客户端拦截器
func UnaryContextTimeout ¶
func UnaryContextTimeout() grpc.UnaryClientInterceptor
UnaryContextTimeout 一元调用客户端拦截器
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.