Documentation ¶
Index ¶
- func NewRefreshableTransport(ctx context.Context, p RefreshableTransportParams, tlsConfig *tls.Config, ...) http.RoundTripper
- type ContextDialer
- type DialerParams
- type RefreshableDialer
- type RefreshableDialerParams
- type RefreshableHTTPClient
- type RefreshableRetryParams
- type RefreshableTag
- type RefreshableTagSlice
- type RefreshableTags
- type RefreshableTransport
- type RefreshableTransportParams
- type RefreshableURL
- type RefreshableURLPtr
- type RefreshableUserinfo
- type RefreshableUserinfoPtr
- type RefreshableValidatedClientParams
- type RefreshingDialerParams
- func (r RefreshingDialerParams) CurrentDialerParams() DialerParams
- func (r RefreshingDialerParams) DialTimeout() refreshable.Duration
- func (r RefreshingDialerParams) KeepAlive() refreshable.Duration
- func (r RefreshingDialerParams) MapDialerParams(mapFn func(DialerParams) interface{}) refreshable.Refreshable
- func (r RefreshingDialerParams) SocksProxyURL() RefreshableURLPtr
- func (r RefreshingDialerParams) SubscribeToDialerParams(consumer func(DialerParams)) (unsubscribe func())
- type RefreshingRetryParams
- func (r RefreshingRetryParams) CurrentRetryParams() RetryParams
- func (r RefreshingRetryParams) InitialBackoff() refreshable.Duration
- func (r RefreshingRetryParams) MapRetryParams(mapFn func(RetryParams) interface{}) refreshable.Refreshable
- func (r RefreshingRetryParams) MaxBackoff() refreshable.Duration
- func (r RefreshingRetryParams) SubscribeToRetryParams(consumer func(RetryParams)) (unsubscribe func())
- type RefreshingTag
- type RefreshingTagSlice
- type RefreshingTags
- type RefreshingTransportParams
- func (r RefreshingTransportParams) CurrentTransportParams() TransportParams
- func (r RefreshingTransportParams) DisableHTTP2() refreshable.Bool
- func (r RefreshingTransportParams) DisableKeepAlives() refreshable.Bool
- func (r RefreshingTransportParams) ExpectContinueTimeout() refreshable.Duration
- func (r RefreshingTransportParams) HTTP2PingTimeout() refreshable.Duration
- func (r RefreshingTransportParams) HTTP2ReadIdleTimeout() refreshable.Duration
- func (r RefreshingTransportParams) HTTPProxyURL() RefreshableURLPtr
- func (r RefreshingTransportParams) IdleConnTimeout() refreshable.Duration
- func (r RefreshingTransportParams) MapTransportParams(mapFn func(TransportParams) interface{}) refreshable.Refreshable
- func (r RefreshingTransportParams) MaxIdleConns() refreshable.Int
- func (r RefreshingTransportParams) MaxIdleConnsPerHost() refreshable.Int
- func (r RefreshingTransportParams) ProxyFromEnvironment() refreshable.Bool
- func (r RefreshingTransportParams) ResponseHeaderTimeout() refreshable.Duration
- func (r RefreshingTransportParams) SubscribeToTransportParams(consumer func(TransportParams)) (unsubscribe func())
- func (r RefreshingTransportParams) TLSHandshakeTimeout() refreshable.Duration
- type RefreshingURL
- func (r RefreshingURL) CurrentURL() url.URL
- func (r RefreshingURL) ForceQuery() refreshable.Bool
- func (r RefreshingURL) Fragment() refreshable.String
- func (r RefreshingURL) Host() refreshable.String
- func (r RefreshingURL) MapURL(mapFn func(url.URL) interface{}) refreshable.Refreshable
- func (r RefreshingURL) Opaque() refreshable.String
- func (r RefreshingURL) Path() refreshable.String
- func (r RefreshingURL) RawFragment() refreshable.String
- func (r RefreshingURL) RawPath() refreshable.String
- func (r RefreshingURL) RawQuery() refreshable.String
- func (r RefreshingURL) Scheme() refreshable.String
- func (r RefreshingURL) SubscribeToURL(consumer func(url.URL)) (unsubscribe func())
- func (r RefreshingURL) User() RefreshableUserinfoPtr
- type RefreshingURLPtr
- func (r RefreshingURLPtr) CurrentURLPtr() *url.URL
- func (r RefreshingURLPtr) ForceQuery() refreshable.Bool
- func (r RefreshingURLPtr) Fragment() refreshable.String
- func (r RefreshingURLPtr) Host() refreshable.String
- func (r RefreshingURLPtr) MapURLPtr(mapFn func(*url.URL) interface{}) refreshable.Refreshable
- func (r RefreshingURLPtr) Opaque() refreshable.String
- func (r RefreshingURLPtr) Path() refreshable.String
- func (r RefreshingURLPtr) RawFragment() refreshable.String
- func (r RefreshingURLPtr) RawPath() refreshable.String
- func (r RefreshingURLPtr) RawQuery() refreshable.String
- func (r RefreshingURLPtr) Scheme() refreshable.String
- func (r RefreshingURLPtr) SubscribeToURLPtr(consumer func(*url.URL)) (unsubscribe func())
- func (r RefreshingURLPtr) User() RefreshableUserinfoPtr
- type RefreshingUserinfo
- type RefreshingUserinfoPtr
- type RefreshingValidatedClientParams
- func (r RefreshingValidatedClientParams) APIToken() refreshable.StringPtr
- func (r RefreshingValidatedClientParams) CurrentValidatedClientParams() ValidatedClientParams
- func (r RefreshingValidatedClientParams) Dialer() RefreshableDialerParams
- func (r RefreshingValidatedClientParams) DisableMetrics() refreshable.Bool
- func (r RefreshingValidatedClientParams) MapValidatedClientParams(mapFn func(ValidatedClientParams) interface{}) refreshable.Refreshable
- func (r RefreshingValidatedClientParams) MaxAttempts() refreshable.IntPtr
- func (r RefreshingValidatedClientParams) MetricsTags() RefreshableTags
- func (r RefreshingValidatedClientParams) Retry() RefreshableRetryParams
- func (r RefreshingValidatedClientParams) SubscribeToValidatedClientParams(consumer func(ValidatedClientParams)) (unsubscribe func())
- func (r RefreshingValidatedClientParams) Timeout() refreshable.Duration
- func (r RefreshingValidatedClientParams) Transport() RefreshableTransportParams
- func (r RefreshingValidatedClientParams) URIs() refreshable.StringSlice
- type RetryParams
- type TransportParams
- type ValidatedClientParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRefreshableTransport ¶
func NewRefreshableTransport(ctx context.Context, p RefreshableTransportParams, tlsConfig *tls.Config, dialer ContextDialer) http.RoundTripper
Types ¶
type ContextDialer ¶
type ContextDialer interface {
DialContext(ctx context.Context, network, address string) (net.Conn, error)
}
ContextDialer is the interface implemented by net.Dialer, proxy.Dialer, and others
func NewRefreshableDialer ¶
func NewRefreshableDialer(ctx context.Context, p RefreshableDialerParams) ContextDialer
type DialerParams ¶
type RefreshableDialer ¶
type RefreshableDialer struct {
refreshable.Refreshable // contains ContextDialer
}
func (*RefreshableDialer) DialContext ¶
type RefreshableDialerParams ¶
type RefreshableDialerParams interface { refreshable.Refreshable CurrentDialerParams() DialerParams MapDialerParams(func(DialerParams) interface{}) refreshable.Refreshable SubscribeToDialerParams(func(DialerParams)) (unsubscribe func()) DialTimeout() refreshable.Duration KeepAlive() refreshable.Duration SocksProxyURL() RefreshableURLPtr }
func ConfigureDialer ¶
func ConfigureDialer(r RefreshableDialerParams, mapFn func(p DialerParams) DialerParams) RefreshableDialerParams
ConfigureDialer accepts a mapping function which will be applied to the params value as it is evaluated. This can be used to layer/overwrite configuration before building the RefreshableDialer.
type RefreshableHTTPClient ¶
type RefreshableHTTPClient interface { refreshable.Refreshable CurrentHTTPClient() *http.Client }
func NewRefreshableHTTPClient ¶
func NewRefreshableHTTPClient(rt http.RoundTripper, timeout refreshable.Duration) RefreshableHTTPClient
type RefreshableRetryParams ¶
type RefreshableRetryParams interface { refreshable.Refreshable CurrentRetryParams() RetryParams MapRetryParams(func(RetryParams) interface{}) refreshable.Refreshable SubscribeToRetryParams(func(RetryParams)) (unsubscribe func()) InitialBackoff() refreshable.Duration MaxBackoff() refreshable.Duration }
func ConfigureRetry ¶
func ConfigureRetry(r RefreshableRetryParams, mapFn func(p RetryParams) RetryParams) RefreshableRetryParams
ConfigureRetry accepts a mapping function which will be applied to the params value as it is evaluated. This can be used to layer/overwrite configuration before building the RefreshableRetryParams.
type RefreshableTag ¶
type RefreshableTag interface { refreshable.Refreshable CurrentTag() metrics.Tag MapTag(func(metrics.Tag) interface{}) refreshable.Refreshable SubscribeToTag(func(metrics.Tag)) (unsubscribe func()) }
type RefreshableTagSlice ¶
type RefreshableTagSlice interface { refreshable.Refreshable CurrentTagSlice() []metrics.Tag MapTagSlice(func([]metrics.Tag) interface{}) refreshable.Refreshable SubscribeToTagSlice(func([]metrics.Tag)) (unsubscribe func()) }
type RefreshableTags ¶
type RefreshableTags interface { refreshable.Refreshable CurrentTags() metrics.Tags MapTags(func(metrics.Tags) interface{}) refreshable.Refreshable SubscribeToTags(func(metrics.Tags)) (unsubscribe func()) }
type RefreshableTransport ¶
type RefreshableTransport struct {
refreshable.Refreshable // contains *http.Transport
}
RefreshableTransport implements http.RoundTripper backed by a refreshable *http.Transport. The transport and internal dialer are each rebuilt when any of their respective parameters are updated.
type RefreshableTransportParams ¶
type RefreshableTransportParams interface { refreshable.Refreshable CurrentTransportParams() TransportParams MapTransportParams(func(TransportParams) interface{}) refreshable.Refreshable SubscribeToTransportParams(func(TransportParams)) (unsubscribe func()) MaxIdleConns() refreshable.Int MaxIdleConnsPerHost() refreshable.Int DisableHTTP2() refreshable.Bool DisableKeepAlives() refreshable.Bool IdleConnTimeout() refreshable.Duration ExpectContinueTimeout() refreshable.Duration ResponseHeaderTimeout() refreshable.Duration TLSHandshakeTimeout() refreshable.Duration HTTPProxyURL() RefreshableURLPtr ProxyFromEnvironment() refreshable.Bool HTTP2ReadIdleTimeout() refreshable.Duration HTTP2PingTimeout() refreshable.Duration }
func ConfigureTransport ¶
func ConfigureTransport(r RefreshableTransportParams, mapFn func(p TransportParams) TransportParams) RefreshableTransportParams
ConfigureTransport accepts a mapping function which will be applied to the params value as it is evaluated. This can be used to layer/overwrite configuration before building the RefreshableTransportParams.
type RefreshableURL ¶
type RefreshableURL interface { refreshable.Refreshable CurrentURL() url.URL MapURL(func(url.URL) interface{}) refreshable.Refreshable SubscribeToURL(func(url.URL)) (unsubscribe func()) Scheme() refreshable.String Opaque() refreshable.String User() RefreshableUserinfoPtr Host() refreshable.String Path() refreshable.String RawPath() refreshable.String ForceQuery() refreshable.Bool RawQuery() refreshable.String Fragment() refreshable.String RawFragment() refreshable.String }
type RefreshableURLPtr ¶
type RefreshableURLPtr interface { refreshable.Refreshable CurrentURLPtr() *url.URL MapURLPtr(func(*url.URL) interface{}) refreshable.Refreshable SubscribeToURLPtr(func(*url.URL)) (unsubscribe func()) Scheme() refreshable.String Opaque() refreshable.String User() RefreshableUserinfoPtr Host() refreshable.String Path() refreshable.String RawPath() refreshable.String ForceQuery() refreshable.Bool RawQuery() refreshable.String Fragment() refreshable.String RawFragment() refreshable.String }
type RefreshableUserinfo ¶
type RefreshableUserinfo interface { refreshable.Refreshable CurrentUserinfo() url.Userinfo MapUserinfo(func(url.Userinfo) interface{}) refreshable.Refreshable SubscribeToUserinfo(func(url.Userinfo)) (unsubscribe func()) }
type RefreshableUserinfoPtr ¶
type RefreshableUserinfoPtr interface { refreshable.Refreshable CurrentUserinfoPtr() *url.Userinfo MapUserinfoPtr(func(*url.Userinfo) interface{}) refreshable.Refreshable SubscribeToUserinfoPtr(func(*url.Userinfo)) (unsubscribe func()) }
type RefreshableValidatedClientParams ¶
type RefreshableValidatedClientParams interface { refreshable.Refreshable CurrentValidatedClientParams() ValidatedClientParams MapValidatedClientParams(func(ValidatedClientParams) interface{}) refreshable.Refreshable SubscribeToValidatedClientParams(func(ValidatedClientParams)) (unsubscribe func()) APIToken() refreshable.StringPtr Dialer() RefreshableDialerParams DisableMetrics() refreshable.Bool MaxAttempts() refreshable.IntPtr MetricsTags() RefreshableTags Retry() RefreshableRetryParams Timeout() refreshable.Duration Transport() RefreshableTransportParams URIs() refreshable.StringSlice }
type RefreshingDialerParams ¶
type RefreshingDialerParams struct {
refreshable.Refreshable
}
func NewRefreshingDialerParams ¶
func NewRefreshingDialerParams(in refreshable.Refreshable) RefreshingDialerParams
func (RefreshingDialerParams) CurrentDialerParams ¶
func (r RefreshingDialerParams) CurrentDialerParams() DialerParams
func (RefreshingDialerParams) DialTimeout ¶
func (r RefreshingDialerParams) DialTimeout() refreshable.Duration
func (RefreshingDialerParams) KeepAlive ¶
func (r RefreshingDialerParams) KeepAlive() refreshable.Duration
func (RefreshingDialerParams) MapDialerParams ¶
func (r RefreshingDialerParams) MapDialerParams(mapFn func(DialerParams) interface{}) refreshable.Refreshable
func (RefreshingDialerParams) SocksProxyURL ¶
func (r RefreshingDialerParams) SocksProxyURL() RefreshableURLPtr
func (RefreshingDialerParams) SubscribeToDialerParams ¶
func (r RefreshingDialerParams) SubscribeToDialerParams(consumer func(DialerParams)) (unsubscribe func())
type RefreshingRetryParams ¶
type RefreshingRetryParams struct {
refreshable.Refreshable
}
func NewRefreshingRetryParams ¶
func NewRefreshingRetryParams(in refreshable.Refreshable) RefreshingRetryParams
func (RefreshingRetryParams) CurrentRetryParams ¶
func (r RefreshingRetryParams) CurrentRetryParams() RetryParams
func (RefreshingRetryParams) InitialBackoff ¶
func (r RefreshingRetryParams) InitialBackoff() refreshable.Duration
func (RefreshingRetryParams) MapRetryParams ¶
func (r RefreshingRetryParams) MapRetryParams(mapFn func(RetryParams) interface{}) refreshable.Refreshable
func (RefreshingRetryParams) MaxBackoff ¶
func (r RefreshingRetryParams) MaxBackoff() refreshable.Duration
func (RefreshingRetryParams) SubscribeToRetryParams ¶
func (r RefreshingRetryParams) SubscribeToRetryParams(consumer func(RetryParams)) (unsubscribe func())
type RefreshingTag ¶
type RefreshingTag struct {
refreshable.Refreshable
}
func NewRefreshingTag ¶
func NewRefreshingTag(in refreshable.Refreshable) RefreshingTag
func (RefreshingTag) CurrentTag ¶
func (r RefreshingTag) CurrentTag() metrics.Tag
func (RefreshingTag) MapTag ¶
func (r RefreshingTag) MapTag(mapFn func(metrics.Tag) interface{}) refreshable.Refreshable
func (RefreshingTag) SubscribeToTag ¶
func (r RefreshingTag) SubscribeToTag(consumer func(metrics.Tag)) (unsubscribe func())
type RefreshingTagSlice ¶
type RefreshingTagSlice struct {
refreshable.Refreshable
}
func NewRefreshingTagSlice ¶
func NewRefreshingTagSlice(in refreshable.Refreshable) RefreshingTagSlice
func (RefreshingTagSlice) CurrentTagSlice ¶
func (r RefreshingTagSlice) CurrentTagSlice() []metrics.Tag
func (RefreshingTagSlice) MapTagSlice ¶
func (r RefreshingTagSlice) MapTagSlice(mapFn func([]metrics.Tag) interface{}) refreshable.Refreshable
func (RefreshingTagSlice) SubscribeToTagSlice ¶
func (r RefreshingTagSlice) SubscribeToTagSlice(consumer func([]metrics.Tag)) (unsubscribe func())
type RefreshingTags ¶
type RefreshingTags struct {
refreshable.Refreshable
}
func NewRefreshingTags ¶
func NewRefreshingTags(in refreshable.Refreshable) RefreshingTags
func (RefreshingTags) CurrentTags ¶
func (r RefreshingTags) CurrentTags() metrics.Tags
func (RefreshingTags) MapTags ¶
func (r RefreshingTags) MapTags(mapFn func(metrics.Tags) interface{}) refreshable.Refreshable
func (RefreshingTags) SubscribeToTags ¶
func (r RefreshingTags) SubscribeToTags(consumer func(metrics.Tags)) (unsubscribe func())
type RefreshingTransportParams ¶
type RefreshingTransportParams struct {
refreshable.Refreshable
}
func NewRefreshingTransportParams ¶
func NewRefreshingTransportParams(in refreshable.Refreshable) RefreshingTransportParams
func (RefreshingTransportParams) CurrentTransportParams ¶
func (r RefreshingTransportParams) CurrentTransportParams() TransportParams
func (RefreshingTransportParams) DisableHTTP2 ¶
func (r RefreshingTransportParams) DisableHTTP2() refreshable.Bool
func (RefreshingTransportParams) DisableKeepAlives ¶
func (r RefreshingTransportParams) DisableKeepAlives() refreshable.Bool
func (RefreshingTransportParams) ExpectContinueTimeout ¶
func (r RefreshingTransportParams) ExpectContinueTimeout() refreshable.Duration
func (RefreshingTransportParams) HTTP2PingTimeout ¶
func (r RefreshingTransportParams) HTTP2PingTimeout() refreshable.Duration
func (RefreshingTransportParams) HTTP2ReadIdleTimeout ¶
func (r RefreshingTransportParams) HTTP2ReadIdleTimeout() refreshable.Duration
func (RefreshingTransportParams) HTTPProxyURL ¶
func (r RefreshingTransportParams) HTTPProxyURL() RefreshableURLPtr
func (RefreshingTransportParams) IdleConnTimeout ¶
func (r RefreshingTransportParams) IdleConnTimeout() refreshable.Duration
func (RefreshingTransportParams) MapTransportParams ¶
func (r RefreshingTransportParams) MapTransportParams(mapFn func(TransportParams) interface{}) refreshable.Refreshable
func (RefreshingTransportParams) MaxIdleConns ¶
func (r RefreshingTransportParams) MaxIdleConns() refreshable.Int
func (RefreshingTransportParams) MaxIdleConnsPerHost ¶
func (r RefreshingTransportParams) MaxIdleConnsPerHost() refreshable.Int
func (RefreshingTransportParams) ProxyFromEnvironment ¶
func (r RefreshingTransportParams) ProxyFromEnvironment() refreshable.Bool
func (RefreshingTransportParams) ResponseHeaderTimeout ¶
func (r RefreshingTransportParams) ResponseHeaderTimeout() refreshable.Duration
func (RefreshingTransportParams) SubscribeToTransportParams ¶
func (r RefreshingTransportParams) SubscribeToTransportParams(consumer func(TransportParams)) (unsubscribe func())
func (RefreshingTransportParams) TLSHandshakeTimeout ¶
func (r RefreshingTransportParams) TLSHandshakeTimeout() refreshable.Duration
type RefreshingURL ¶
type RefreshingURL struct {
refreshable.Refreshable
}
func NewRefreshingURL ¶
func NewRefreshingURL(in refreshable.Refreshable) RefreshingURL
func (RefreshingURL) CurrentURL ¶
func (r RefreshingURL) CurrentURL() url.URL
func (RefreshingURL) ForceQuery ¶
func (r RefreshingURL) ForceQuery() refreshable.Bool
func (RefreshingURL) Fragment ¶
func (r RefreshingURL) Fragment() refreshable.String
func (RefreshingURL) Host ¶
func (r RefreshingURL) Host() refreshable.String
func (RefreshingURL) MapURL ¶
func (r RefreshingURL) MapURL(mapFn func(url.URL) interface{}) refreshable.Refreshable
func (RefreshingURL) Opaque ¶
func (r RefreshingURL) Opaque() refreshable.String
func (RefreshingURL) Path ¶
func (r RefreshingURL) Path() refreshable.String
func (RefreshingURL) RawFragment ¶
func (r RefreshingURL) RawFragment() refreshable.String
func (RefreshingURL) RawPath ¶
func (r RefreshingURL) RawPath() refreshable.String
func (RefreshingURL) RawQuery ¶
func (r RefreshingURL) RawQuery() refreshable.String
func (RefreshingURL) Scheme ¶
func (r RefreshingURL) Scheme() refreshable.String
func (RefreshingURL) SubscribeToURL ¶
func (r RefreshingURL) SubscribeToURL(consumer func(url.URL)) (unsubscribe func())
func (RefreshingURL) User ¶
func (r RefreshingURL) User() RefreshableUserinfoPtr
type RefreshingURLPtr ¶
type RefreshingURLPtr struct {
refreshable.Refreshable
}
func NewRefreshingURLPtr ¶
func NewRefreshingURLPtr(in refreshable.Refreshable) RefreshingURLPtr
func (RefreshingURLPtr) CurrentURLPtr ¶
func (r RefreshingURLPtr) CurrentURLPtr() *url.URL
func (RefreshingURLPtr) ForceQuery ¶
func (r RefreshingURLPtr) ForceQuery() refreshable.Bool
func (RefreshingURLPtr) Fragment ¶
func (r RefreshingURLPtr) Fragment() refreshable.String
func (RefreshingURLPtr) Host ¶
func (r RefreshingURLPtr) Host() refreshable.String
func (RefreshingURLPtr) MapURLPtr ¶
func (r RefreshingURLPtr) MapURLPtr(mapFn func(*url.URL) interface{}) refreshable.Refreshable
func (RefreshingURLPtr) Opaque ¶
func (r RefreshingURLPtr) Opaque() refreshable.String
func (RefreshingURLPtr) Path ¶
func (r RefreshingURLPtr) Path() refreshable.String
func (RefreshingURLPtr) RawFragment ¶
func (r RefreshingURLPtr) RawFragment() refreshable.String
func (RefreshingURLPtr) RawPath ¶
func (r RefreshingURLPtr) RawPath() refreshable.String
func (RefreshingURLPtr) RawQuery ¶
func (r RefreshingURLPtr) RawQuery() refreshable.String
func (RefreshingURLPtr) Scheme ¶
func (r RefreshingURLPtr) Scheme() refreshable.String
func (RefreshingURLPtr) SubscribeToURLPtr ¶
func (r RefreshingURLPtr) SubscribeToURLPtr(consumer func(*url.URL)) (unsubscribe func())
func (RefreshingURLPtr) User ¶
func (r RefreshingURLPtr) User() RefreshableUserinfoPtr
type RefreshingUserinfo ¶
type RefreshingUserinfo struct {
refreshable.Refreshable
}
func NewRefreshingUserinfo ¶
func NewRefreshingUserinfo(in refreshable.Refreshable) RefreshingUserinfo
func (RefreshingUserinfo) CurrentUserinfo ¶
func (r RefreshingUserinfo) CurrentUserinfo() url.Userinfo
func (RefreshingUserinfo) MapUserinfo ¶
func (r RefreshingUserinfo) MapUserinfo(mapFn func(url.Userinfo) interface{}) refreshable.Refreshable
func (RefreshingUserinfo) SubscribeToUserinfo ¶
func (r RefreshingUserinfo) SubscribeToUserinfo(consumer func(url.Userinfo)) (unsubscribe func())
type RefreshingUserinfoPtr ¶
type RefreshingUserinfoPtr struct {
refreshable.Refreshable
}
func NewRefreshingUserinfoPtr ¶
func NewRefreshingUserinfoPtr(in refreshable.Refreshable) RefreshingUserinfoPtr
func (RefreshingUserinfoPtr) CurrentUserinfoPtr ¶
func (r RefreshingUserinfoPtr) CurrentUserinfoPtr() *url.Userinfo
func (RefreshingUserinfoPtr) MapUserinfoPtr ¶
func (r RefreshingUserinfoPtr) MapUserinfoPtr(mapFn func(*url.Userinfo) interface{}) refreshable.Refreshable
func (RefreshingUserinfoPtr) SubscribeToUserinfoPtr ¶
func (r RefreshingUserinfoPtr) SubscribeToUserinfoPtr(consumer func(*url.Userinfo)) (unsubscribe func())
type RefreshingValidatedClientParams ¶
type RefreshingValidatedClientParams struct {
refreshable.Refreshable
}
func NewRefreshingValidatedClientParams ¶
func NewRefreshingValidatedClientParams(in refreshable.Refreshable) RefreshingValidatedClientParams
func (RefreshingValidatedClientParams) APIToken ¶
func (r RefreshingValidatedClientParams) APIToken() refreshable.StringPtr
func (RefreshingValidatedClientParams) CurrentValidatedClientParams ¶
func (r RefreshingValidatedClientParams) CurrentValidatedClientParams() ValidatedClientParams
func (RefreshingValidatedClientParams) Dialer ¶
func (r RefreshingValidatedClientParams) Dialer() RefreshableDialerParams
func (RefreshingValidatedClientParams) DisableMetrics ¶
func (r RefreshingValidatedClientParams) DisableMetrics() refreshable.Bool
func (RefreshingValidatedClientParams) MapValidatedClientParams ¶
func (r RefreshingValidatedClientParams) MapValidatedClientParams(mapFn func(ValidatedClientParams) interface{}) refreshable.Refreshable
func (RefreshingValidatedClientParams) MaxAttempts ¶
func (r RefreshingValidatedClientParams) MaxAttempts() refreshable.IntPtr
func (RefreshingValidatedClientParams) MetricsTags ¶
func (r RefreshingValidatedClientParams) MetricsTags() RefreshableTags
func (RefreshingValidatedClientParams) Retry ¶
func (r RefreshingValidatedClientParams) Retry() RefreshableRetryParams
func (RefreshingValidatedClientParams) SubscribeToValidatedClientParams ¶
func (r RefreshingValidatedClientParams) SubscribeToValidatedClientParams(consumer func(ValidatedClientParams)) (unsubscribe func())
func (RefreshingValidatedClientParams) Timeout ¶
func (r RefreshingValidatedClientParams) Timeout() refreshable.Duration
func (RefreshingValidatedClientParams) Transport ¶
func (r RefreshingValidatedClientParams) Transport() RefreshableTransportParams
func (RefreshingValidatedClientParams) URIs ¶
func (r RefreshingValidatedClientParams) URIs() refreshable.StringSlice
type RetryParams ¶
type TransportParams ¶
type TransportParams struct { MaxIdleConns int MaxIdleConnsPerHost int DisableHTTP2 bool DisableKeepAlives bool IdleConnTimeout time.Duration ExpectContinueTimeout time.Duration ResponseHeaderTimeout time.Duration TLSHandshakeTimeout time.Duration HTTPProxyURL *url.URL ProxyFromEnvironment bool HTTP2ReadIdleTimeout time.Duration HTTP2PingTimeout time.Duration }
type ValidatedClientParams ¶
type ValidatedClientParams struct { APIToken *string Dialer DialerParams DisableMetrics bool MaxAttempts *int MetricsTags metrics.Tags Retry RetryParams Timeout time.Duration Transport TransportParams URIs []string }
ValidatedClientParams represents a set of fields derived from a snapshot of ClientConfig. It is designed for use within a refreshable: fields are comparable with reflect.DeepEqual so unnecessary updates are not pushed to subscribers. Values are generally known to be "valid" to minimize downstream error handling.