func Get(c *gin.Context) string
Get returns the request identifier
func New(opts ...Option) gin.HandlerFunc
New initializes the RequestID middleware.
type Generator func() string
type Handler func(c *gin.Context, requestID string)
type HeaderStrKey string
Option for queue system
type Option func(*config)
func WithCustomHeaderStrKey(s HeaderStrKey) Option
WithCustomeHeaderStrKey set custom header key for request id
func WithGenerator(g Generator) Option
WithGenerator set generator function
func WithHandler(handler Handler) Option
WithHandler set handler function for request id with context