requestid

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(c *gin.Context) string

Get returns the request identifier

func New

func New(opts ...Option) gin.HandlerFunc

New initializes the RequestID middleware.

Types

type Generator

type Generator func() string

type Option

type Option func(*config)

Option for queue system

func WithCustomHeaderStrKey

func WithCustomHeaderStrKey(s string) Option

WithCustomHeaderStrKey set custom header key for request id

func WithGenerator

func WithGenerator(g Generator) Option

WithGenerator set generator function

Jump to

Keyboard shortcuts

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