Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextualServerStream ¶
type ContextualServerStream struct { grpc.ServerStream // contains filtered or unexported fields }
ContextualServerStream wraps a "normal" grpc.Server stream but replaces the context. This is useful in for example middlewares.
func NewContextualServerStream ¶
func NewContextualServerStream(ctx context.Context, root grpc.ServerStream) *ContextualServerStream
NewContextualServerStream creates a new server stream, that uses the given context.
func (*ContextualServerStream) Context ¶
func (s *ContextualServerStream) Context() context.Context
Context returns the context for this server stream.
Click to show internal directories.
Click to hide internal directories.