Documentation ¶
Index ¶
- Variables
- func StreamClientInterceptor(key interface{}, chained bool) grpc.StreamClientInterceptor
- func StreamServerInterceptor(key interface{}, chained bool) grpc.StreamServerInterceptor
- func UnaryClientInterceptor(key interface{}, chained bool) grpc.UnaryClientInterceptor
- func UnaryServerInterceptor(key interface{}, chained bool) grpc.UnaryServerInterceptor
Constants ¶
This section is empty.
Variables ¶
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.