package
0.13.1-beta1
Repository: https://github.com/donewscode/core.git
Documentation: pkg.go.dev

# Functions

NewClient creates a Client with tracing support.
Providers provides the http client as a dependency.
WithClientConstructor instructs the Providers to accept an alternative constructor for the contract.HttpDoer to be wrapped by clihttp.NewClient.
WithClientOption instructs the Providers to accept additional options for the NewClient call, such as WithRequestLogThreshold.
WithDoer is an option that accepts a HttpDoer as the underlying client.
WithRequestLogThreshold is options that sets threshold of request logging in number of bytes.
WithResponseLogThreshold is options that sets threshold of response logging in number of bytes.

# Structs

Client is a http client that traces http requests.
ClientArgs is the constructor argument for WithClientConstructor.

# Interfaces

HttpDoer modules a upstream http client.

# Type aliases

Option changes the behavior of Client.
ProvidersOptionFunc is the type of functional providersOption for Providers.