Documentation
¶
Overview ¶
Package diagnostics provides opt-in, command-scoped progress on stderr. Callers must supply only public operational metadata, never credentials, command arguments, environments, request bodies, or unfiltered errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Printf ¶
Printf writes one diagnostic line when its minimum level is enabled. Formats and arguments must be explicitly selected non-secret metadata.
Types ¶
type Transport ¶
type Transport struct {
Base http.RoundTripper
// Hop and Profile name the controlled hop and its policy for the TLS line.
Hop tlspolicy.Hop
Profile tlspolicy.Profile
}
Transport reports request methods, destination origins and response status. URL paths, queries, userinfo, headers, bodies and error strings are omitted: even a failed transport error can contain an entire credential-bearing URL.
When Hop is set, a completed TLS response also reports the negotiated version and group under the hop's policy profile (#1127). That line is observation of this process's own connection only; it never infers a proxy's or peer-side terminator's group, and it says nothing about certificate authentication.
func (Transport) CloseIdleConnections ¶
func (t Transport) CloseIdleConnections()
CloseIdleConnections preserves http.Client's transport cleanup contract.