accesslogger

package
v74.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: Apache-2.0, BSD-3-Clause, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const REQUEST_ID_HEADER = "X-Vcap-Request-ID"

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLog

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

func NewAccessLog

func NewAccessLog(req *http.Request, ts time.Time, host string, port uint32) *AccessLog

func (*AccessLog) String

func (al *AccessLog) String() string

type AccessLogger

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

func New

func New(writer io.Writer) *AccessLogger

func (*AccessLogger) LogAccess

func (a *AccessLogger) LogAccess(req *http.Request, host string, port uint32) error

type Writer

type Writer interface {
	Write(message []byte) (sent int, err error)
}

Jump to

Keyboard shortcuts

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