reqcontext

package
v0.0.0-...-cf0bdef Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequestLogger

func GetRequestLogger(r *http.Request) *log.Logger

func WithContext

func WithContext(r *http.Request, ctx *RequestContext) *http.Request

Types

type RequestContext

type RequestContext struct {
	RequestID   uuid.UUID
	Logger      log.Logger
	ErrorStacks []errorStack
}

func FromRequest

func FromRequest(r *http.Request) *RequestContext

Jump to

Keyboard shortcuts

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