Versions in this module Expand all Collapse all v0 v0.17.2 Mar 6, 2026 Changes in this version + var EnvClientTimeout = os.Getenv("CLIENT_TIMEOUT") + var RetryDelay = 3 * time.Second + func HandleError(httpStatus int, msg string, okStatusCodes ...int) error + func NewHttpClientOrDie(opts ...Option) client.HttpRequestDoer + type CertRefresher struct + Pool *x509.CertPool + func NewCertRefresher(filepath string) *CertRefresher + func (c *CertRefresher) Start(ctx context.Context) (err error) + func (c *CertRefresher) Watch(ctx context.Context) + type HttpError struct + func BlockedErrorf(format string, a ...any) *HttpError + func RetryableErrorf(format string, a ...any) *HttpError + func RetryableWithDelayErrorf(delay time.Duration, format string, a ...any) *HttpError + func (e *HttpError) Error() string + func (e *HttpError) IsBlocked() bool + func (e *HttpError) IsRetryable() bool + func (e *HttpError) RetryDelay() time.Duration + func (e *HttpError) StatusCode() int + func (e *HttpError) WithStatusCode(code int) *HttpError + type Option func(*Options) + func WithCaFilepath(caFilepath string) Option + func WithClientName(name string) Option + func WithClientTimeout(timeout time.Duration) Option + func WithReplacePattern(pattern string) Option + func WithSkipTlsVerify(skip bool) Option + type Options struct + CaFilepath string + ClientName string + ClientTimeout time.Duration + ReplacePattern string + SkipTlsVerify bool