Versions in this module Expand all Collapse all v0 v0.1.2 Oct 30, 2025 v0.1.1 Oct 28, 2025 Changes in this version + type Client struct + func New(opts ...Option) *Client + func (c *Client) R(ctx context.Context) *resty.Request + type MetricData struct + ConnIdleTime time.Duration + DNSLookup time.Duration + Host string + IsConnReused bool + IsConnWasIdle bool + Method string + Path string + RemoteAddr string + RequestAttempt int + ResponseTime time.Duration + ServerTime time.Duration + StatusCode int + TCPConn time.Duration + TLSHandshake time.Duration + TotalTime time.Duration + type MetricRecorder interface + RecordRequest func(data MetricData) + type Option func(*options) + func WithDisableLog() Option + func WithIdleConnTimeout(timeout time.Duration) Option + func WithInsecureSkipVerify() Option + func WithKeepAlive(duration time.Duration) Option + func WithLogger(l logger.Logger) Option + func WithMaxBodyLogSize(size int64) Option + func WithMaxIdleConns(count int) Option + func WithMetric(recorder MetricRecorder) Option + func WithRetry(count int, waitTime, maxWaitTime time.Duration) Option + func WithTLSHandshakeTimeout(timeout time.Duration) Option + func WithTimeout(timeout time.Duration) Option + func WithTrace(serviceName string) Option