schema

package
Version: v0.0.0-...-2fc2a81 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, MIT 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
	HeadersOverride        http.Header
	StatusCode             int
	RouteEndpoint          *route.Endpoint
	StartedAt              time.Time
	FirstByteAt            time.Time
	FinishedAt             time.Time
	BodyBytesSent          int
	RequestBytesReceived   int
	ExtraHeadersToLog      []string
	DisableXFFLogging      bool
	DisableSourceIPLogging bool
	// 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL