requests

package
v0.0.0-...-7c75c55 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2017 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const RequestIDHeaderParam = "X-Request-Id"

RequestIDHeaderParam request header parameter name for unique request ID.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextIDGenerator

type ContextIDGenerator struct {
	// contains filtered or unexported fields
}

ContextIDGenerator generates a unique request header value based on the in bound request X-Request-Id header

func NewContentIDGenerator

func NewContentIDGenerator(req *http.Request) ContextIDGenerator

NewContentIDGenerator creates a new ContextIDGenerator using the provided http.Request

func (ContextIDGenerator) Generate

func (r ContextIDGenerator) Generate() string

Generate generates a unique RequestContextID to be used to communicate with zebedee.

Jump to

Keyboard shortcuts

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