rzmiddleware

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 12 Imported by: 1

README

rzmiddleware

Documentation

Index

Constants

View Source
const (
	RequestIDHeader = "X-Request-Id"
)

Variables

This section is empty.

Functions

func GetReqID

func GetReqID(ctx context.Context) string

func GinRequestIDMW added in v1.0.2

func GinRequestIDMW(c *gin.Context)

func NewRequestID added in v1.0.3

func NewRequestID() string

func RequestID

func RequestID(next http.Handler) http.Handler

func RequestIDStreamServerInterceptor

func RequestIDStreamServerInterceptor() grpc.StreamServerInterceptor

func RequestIDUnaryServerInterceptor

func RequestIDUnaryServerInterceptor() grpc.UnaryServerInterceptor

Types

type RequestIDKey

type RequestIDKey struct{}

Jump to

Keyboard shortcuts

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