Documentation
¶
Index ¶
- type AccessLogRecord
- func (r *AccessLogRecord) ApplicationId() string
- func (r *AccessLogRecord) ExtraHeaders() string
- func (r *AccessLogRecord) FormatRequestHeader(k string) (v string)
- func (r *AccessLogRecord) FormatStartedAt() string
- func (r *AccessLogRecord) LogMessage() string
- func (r *AccessLogRecord) ResponseTime() float64
- func (r *AccessLogRecord) WriteTo(w io.Writer) (int64, error)
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
}
func (*AccessLogRecord) ApplicationId ¶
func (r *AccessLogRecord) ApplicationId() string
func (*AccessLogRecord) ExtraHeaders ¶
func (r *AccessLogRecord) ExtraHeaders() string
func (*AccessLogRecord) FormatRequestHeader ¶
func (r *AccessLogRecord) FormatRequestHeader(k string) (v string)
func (*AccessLogRecord) FormatStartedAt ¶
func (r *AccessLogRecord) FormatStartedAt() string
func (*AccessLogRecord) LogMessage ¶
func (r *AccessLogRecord) LogMessage() string
func (*AccessLogRecord) ResponseTime ¶
func (r *AccessLogRecord) ResponseTime() float64
Click to show internal directories.
Click to hide internal directories.