Documentation ¶
Index ¶
Constants ¶
View Source
const ( RetryCounts = 2 RetryInterval = 3 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(ctx context.Context, options ...ClientOption) (client *resty.Client)
func NewClientWithRetry ¶
Types ¶
type ClientConfig ¶
type ClientConfig struct {
// contains filtered or unexported fields
}
type ClientOption ¶
type ClientOption func(*ClientConfig)
func WithClient ¶
func WithClient(client *resty.Client) ClientOption
func WithClientTag ¶
func WithClientTag(key string, value string) ClientOption
func WithContext ¶
func WithContext(ctx context.Context) ClientOption
Click to show internal directories.
Click to hide internal directories.