package
1.0.0
Repository: https://github.com/mbiagini/go-server-utils.git
Documentation: pkg.go.dev

# Functions

GetTraceID returns a request trace ID from the given context if one is present.
This handler logs the request as the server receives it and the response as it is returned by the server.
No description provided by the author
No description provided by the author
Receives the default error to be written to the http.ResponseWriter.
TraceID is a middleware that injects a trace ID into the context of each request.

# Constants

TraceIDKey is the key that holds the unique trace ID in a request context.

# Variables

TraceIDHeader is the name of the HTTP header which contains the trace ID.

# Structs

HttpLogTransport wraps an http.Transport adding the logging of request and response.
ResponseWriterWrapper is used to wrap an http.ResponseWriter implementation an be able to read from it without modifying the actual writer.
TracingTransport wraps an http.RoundTripper adding the trace-id if found in the request context.