metadata

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug = os.Getenv("DEBUG")
)

Functions

func ContextWithProduct

func ContextWithProduct(ctx context.Context, product string) context.Context

func ParseIncomingMetadata

func ParseIncomingMetadata(ctx context.Context) *common.Metadata

func RequestMetadata

func RequestMetadata(ctx context.Context) *common.Metadata

func StreamServerInterceptor

func StreamServerInterceptor() grpc.StreamServerInterceptor

StreamServerInterceptor returns a new streaming server interceptor for parsing request metadata.

func UnaryServerInterceptor

func UnaryServerInterceptor() grpc.UnaryServerInterceptor

UnaryServerInterceptor returns a new unary server interceptor for parsing request metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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