context

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(r *http.Request, size, status int, when time.Time, duration time.Duration) (c feature.LoggerContext, err error)

Types

type CLoggerContext

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

func (*CLoggerContext) Duration

func (c *CLoggerContext) Duration() (duration time.Duration)

func (*CLoggerContext) Request

func (c *CLoggerContext) Request() (r *http.Request)

func (*CLoggerContext) Size

func (c *CLoggerContext) Size() (size int)

func (*CLoggerContext) StatusCode

func (c *CLoggerContext) StatusCode() (status int)

func (*CLoggerContext) TimeStamp

func (c *CLoggerContext) TimeStamp() (when time.Time)

func (*CLoggerContext) URL

func (c *CLoggerContext) URL() (parsed *url.URL)

Jump to

Keyboard shortcuts

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