Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCallerFunctionName ¶
func GetCallerFunctionName() string
GetCallerFunctionName for extracting name of next to next caller function
Types ¶
type HTTPClient ¶
HTTPClient wrapper over net/http client with tracing
func NewHTTPClient ¶
func NewHTTPClient(opt ...HTTPClientOption) *HTTPClient
NewHTTPClient creates a new HTTPClient with DefaultTransport TODO: add options to configure transport
type HTTPClientOption ¶
type HTTPClientOption func(client *HTTPClient)
HTTPClientOption different options to configure the HTTPClient
func WithTraceEnabled ¶
func WithTraceEnabled(e bool) HTTPClientOption
WithTraceEnabled allows to toggle tracing
Click to show internal directories.
Click to hide internal directories.