x_request_id

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultXRequestIDKey = "X-Request-ID"

DefaultXRequestIDKey is metadata key name for request ID

Functions

func StreamClientInterceptor

func StreamClientInterceptor(key interface{}, chained bool) grpc.StreamClientInterceptor

StreamServerInterceptor returns a new streaming client interceptor with tags in context.

func StreamServerInterceptor

func StreamServerInterceptor(key interface{}, chained bool) grpc.StreamServerInterceptor

StreamServerInterceptor returns a new streaming server interceptor with tags in context. key is RequestID within Context if have chained to chain multiple request ids by generating new request id for each request and concatenating it to original request ids.

func UnaryClientInterceptor

func UnaryClientInterceptor(key interface{}, chained bool) grpc.UnaryClientInterceptor

UnaryClientInterceptor returns a new unary client interceptor with tags in context.

func UnaryServerInterceptor

func UnaryServerInterceptor(key interface{}, chained bool) grpc.UnaryServerInterceptor

UnaryServerInterceptor returns a new unary server interceptors with tags in context. key is RequestID within Context if have chained to chain multiple request ids by generating new request id for each request and concatenating it to original request ids.

Types

This section is empty.

Jump to

Keyboard shortcuts

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