Documentation ¶
Index ¶
- func ToUserAndPass(userpass []string) (map[string]Userpass, error)
- type Option
- func WithAllowHeadMethod(allowHeadMethod bool) Option
- func WithBaseTransport(baseTransport http.RoundTripper) Option
- func WithDisableKeepAlives(disableKeepAlives []string) Option
- func WithLogger(logger *slog.Logger) Option
- func WithRetry(retry int, retryInterval time.Duration) Option
- func WithUserAndPass(userAndPass map[string]Userpass) Option
- type Transport
- type Userpass
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(c *Transport)
func WithAllowHeadMethod ¶
func WithBaseTransport ¶
func WithBaseTransport(baseTransport http.RoundTripper) Option
func WithDisableKeepAlives ¶
func WithLogger ¶
func WithUserAndPass ¶
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func NewTransport ¶
type Userpass ¶
type Userpass = authn.AuthConfig
Click to show internal directories.
Click to hide internal directories.