Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RequestLog ¶
type RequestLog struct { TraceID string `json:"trace_id,omitempty"` SpanID string `json:"span_id,omitempty"` StartTime string `json:"start_time,omitempty"` ResponseTime int64 `json:"response_time,omitempty"` Method string `json:"method,omitempty"` UserAgent string `json:"user_agent,omitempty"` IP string `json:"ip,omitempty"` URI string `json:"uri,omitempty"` Response int `json:"response,omitempty"` }
type StatusResponseWriter ¶
type StatusResponseWriter struct { http.ResponseWriter // contains filtered or unexported fields }
StatusResponseWriter Defines own Response Writer to be used for logging of status - as http.ResponseWriter does not let us read status.
func (*StatusResponseWriter) WriteHeader ¶
func (w *StatusResponseWriter) WriteHeader(status int)
Click to show internal directories.
Click to hide internal directories.