logctx

package
v2.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Clock clock = defaultClock{}

Functions

func Release

func Release(ctx *Context)

Types

type Context

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

func Get

func Get(r *http.Request) *Context

func (*Context) ElapsedTime

func (ctx *Context) ElapsedTime() time.Duration

func (*Context) Finalize

func (ctx *Context) Finalize(wrapped *httputil.ResponseWriter)

func (*Context) Request

func (ctx *Context) Request() *http.Request

func (*Context) RequestTime

func (ctx *Context) RequestTime() time.Time

func (*Context) Reset

func (ctx *Context) Reset()

func (*Context) ResponseContentLength

func (ctx *Context) ResponseContentLength() int64

func (*Context) ResponseHeader

func (ctx *Context) ResponseHeader() http.Header

func (*Context) ResponseStatus

func (ctx *Context) ResponseStatus() int

func (*Context) ResponseTime

func (ctx *Context) ResponseTime() time.Time

Jump to

Keyboard shortcuts

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