Documentation ¶
Overview ¶
Package warning communicates warnings over gRPC headers. The Add func is used by the server to add a warning header. The client interceptors log warnings to the logger in the context, or to the default logger.
Note that headers are currently not supported by ServeHTTP of the gRPC server. This means that warnings may not be received by clients using the fallback server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamClientInterceptor ¶
func StreamClientInterceptor(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption) (grpc.ClientStream, error)
StreamClientInterceptor is a streaming client interceptor that logs warnings sent by the server.
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
UnaryClientInterceptor is a unary client interceptor that logs warnings sent by the server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.