request_id

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderName = "Request-Id"

Variables

This section is empty.

Functions

func RandomIdGenerator

func RandomIdGenerator(_ *http.Request) string

Types

type Config

type Config struct {
	HeaderName  string
	IdGenerator func(*http.Request) string
}

func NewConfig

func NewConfig() *Config

Jump to

Keyboard shortcuts

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