Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransportHTTPLogger ¶
func NewTransportHTTPLogger( l *logger.Logger, transportType HTTPLoggerType, ) http.RoundTripper
NewTransportHTTPLogger get http.RoundTripper.
Types ¶
type HTTPLogger ¶ added in v0.0.21
type HTTPLogger struct { http.RoundTripper Type HTTPLoggerType // contains filtered or unexported fields }
HTTPLogger struct.
type HTTPLoggerType ¶ added in v0.0.21
type HTTPLoggerType string
HTTPLoggerType defines the transport type.
const ( // HTTPLoggerTypeExternal defines the external type. HTTPLoggerTypeExternal HTTPLoggerType = "external" // HTTPLoggerTypeInternal defines the internal type. HTTPLoggerTypeInternal HTTPLoggerType = "internal" )
Click to show internal directories.
Click to hide internal directories.