requestid

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestId

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

RequestId returns the request-id gin handler

Types

type Option

type Option func(options *Options)

func WithGenerator

func WithGenerator(gen func(ctx *gin.Context) string) Option

func WithHeader

func WithHeader(header string) Option

type Options

type Options struct {
	Header    string
	Generator func(ctx *gin.Context) string
}

Jump to

Keyboard shortcuts

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