id

package module
v0.0.0-...-3236bfa Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: BSD-3-Clause Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequestIdHeaderName = "X-Request-Id"

Functions

func Gen

Gen wraps hf in order to creates unique id and adds it to response headers under header name given by RequestIdHeaderName.

func Get

func Get(rw http.ResponseWriter) string

Get returns id added by Gen.

Types

This section is empty.

Jump to

Keyboard shortcuts

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