schema

package
v0.0.0-...-9b2d5d1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 1 more Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLogRecord

type AccessLogRecord struct {
	Request              *http.Request
	StatusCode           int
	RouteEndpoint        *route.Endpoint
	StartedAt            time.Time
	FirstByteAt          time.Time
	FinishedAt           time.Time
	BodyBytesSent        int
	RequestBytesReceived int
	ExtraHeadersToLog    *[]string
	// contains filtered or unexported fields
}

AccessLogRecord represents a single access log line

func (*AccessLogRecord) ApplicationID

func (r *AccessLogRecord) ApplicationID() string

ApplicationID returns the application ID that corresponds with the access log

func (*AccessLogRecord) LogMessage

func (r *AccessLogRecord) LogMessage() string

LogMessage returns a string representation of the access log line

func (*AccessLogRecord) WriteTo

func (r *AccessLogRecord) WriteTo(w io.Writer) (int64, error)

WriteTo allows the AccessLogRecord to implement the io.WriterTo interface

Jump to

Keyboard shortcuts

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