Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WrappedServerStream ¶
type WrappedServerStream struct { grpc.ServerStream // WrappedContext is the wrapper's own Context. You can assign it. WrappedContext context.Context }
WrappedServerStream is a thin wrapper around grpc.ServerStream that allows modifying context.
func WrapServerStream ¶
func WrapServerStream(stream grpc.ServerStream) *WrappedServerStream
WrapServerStream returns a ServerStream that has the ability to overwrite context.
func (*WrappedServerStream) Context ¶
func (w *WrappedServerStream) Context() context.Context
Context returns the wrapper's WrappedContext, overwriting the nested grpc.ServerStream.Context()
Directories ¶
Path | Synopsis |
---|---|
grpc_glog
`grpc_logrus` is a gRPC logging middleware backed by Logrus loggers
|
`grpc_logrus` is a gRPC logging middleware backed by Logrus loggers |
`grpc_ctxtags` adds a Tag object to the context that can be used by other middleware to add context about a request.
|
`grpc_ctxtags` adds a Tag object to the context that can be used by other middleware to add context about a request. |
util
|
|
backoffutils
Backoff Helper Utilities
|
Backoff Helper Utilities |
Click to show internal directories.
Click to hide internal directories.