Documentation ¶
Index ¶
- func AddResponseBodyMonitorToContext(ctx context.Context) context.Context
- func AddResponseToMonitor(ctx context.Context, resp *http.Response)
- func CheckForUnclosedResponses(ctx context.Context, entry *logrus.Entry)
- func InitFieldsFromRequest(req *http.Request) logrus.Fields
- func NewLoggingRoundTripper(logentry *logrus.Entry, base http.RoundTripper) http.RoundTripper
- type OpenResponseBodyErrors
- type RequestTimer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoggingRoundTripper ¶
func NewLoggingRoundTripper(logentry *logrus.Entry, base http.RoundTripper) http.RoundTripper
Types ¶
type OpenResponseBodyErrors ¶
type OpenResponseBodyErrors struct {
// contains filtered or unexported fields
}
func (*OpenResponseBodyErrors) Error ¶
func (e *OpenResponseBodyErrors) Error() string
type RequestTimer ¶
type RequestTimer struct { RespWrapper middleware.WrapResponseWriter // contains filtered or unexported fields }
func NewRequestTimer ¶
func NewRequestTimer(w http.ResponseWriter, r *http.Request) RequestTimer
func (RequestTimer) Log ¶
func (r RequestTimer) Log(entry *logrus.Entry)
Click to show internal directories.
Click to hide internal directories.