cloudstream

package
v0.58.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL