interceptors

package
v1.2.120 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WrappedClientStream added in v1.2.91

type WrappedClientStream struct {
	grpc.ClientStream
	// WrappedContext is the wrapper's own Context. You can assign it.
	WrappedContext context.Context
}

WrappedClientStream is a thin wrapper around grpc.ClientStream that allows modifying context.

func WrapClientStream added in v1.2.92

func WrapClientStream(stream grpc.ClientStream) *WrappedClientStream

WrapClientStream returns a ClientStream that has the ability to overwrite context.

func (*WrappedClientStream) Context added in v1.2.91

func (w *WrappedClientStream) Context() context.Context

Context returns the wrapper's WrappedContext, overwriting the nested grpc.ClientStream.Context()

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

Jump to

Keyboard shortcuts

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