package
0.10.3
Repository: https://github.com/basharal/common.git
Documentation: pkg.go.dev

# Functions

NewBasicAuthRoundTripper will apply a BASIC auth authorization header to a request unless it has already been set.
NewBearerAuthFileRoundTripper adds the bearer token read from the provided file to a request unless the authorization header has already been set.
NewBearerAuthRoundTripper adds the provided bearer token to a request unless the authorization header has already been set.
NewClientFromConfig returns a new HTTP client configured for the given config.HTTPClientConfig.
NewRoundTripperFromConfig returns a new HTTP RoundTripper configured for the given config.HTTPClientConfig.
NewTLSConfig creates a new tls.Config from the given TLSConfig.

# Structs

BasicAuth contains basic HTTP authentication credentials.
HTTPClientConfig configures an HTTP client.
TLSConfig configures the options for TLS connections.
URL is a custom URL type that allows validation at configuration load time.

# Type aliases

Secret special type for storing secrets.