Versions in this module Expand all Collapse all v1 v1.0.0 Mar 9, 2024 Changes in this version + type Client struct + func NewClient(proxy *url.URL, userAgent string, delay time.Duration) *Client + func (client *Client) GetDelay() time.Duration + func (client *Client) GetRequestTime() time.Time + func (client *Client) GetUserAgent() string + func (client *Client) IsAvailable() bool + func (client *Client) IsRunning() bool + func (client *Client) QuickRequest(reqData RequestData) (ResponseData, error) + func (client *Client) SetActive() + func (client *Client) SetDelay(delay time.Duration) + func (client *Client) SetInactive() + func (client *Client) SetUserAgent(userAgent string) + type ClientPool struct + Clients []*Client + func NewClientPool(clientDelay, poolDelay time.Duration, proxies []*url.URL, ...) ClientPool + func (pool *ClientPool) AddClient(client *Client) + func (pool *ClientPool) Done() + func (pool *ClientPool) GetClient() *Client + func (pool *ClientPool) QuickRequest(reqData RequestData) (ResponseData, error) + func (pool *ClientPool) RemmoveClient(client *Client) + func (pool *ClientPool) SetClientDelay(clientDelay time.Duration) + func (pool *ClientPool) SetPoolDelay(poolDelay time.Duration) + type RequestData struct + Cookies map[string]string + FormData map[string]string + FormFiles map[string]*os.File + Headers map[string][]string + JsonData interface{} + Params map[string][]string + RawData *io.Reader + Type string + Url string + type ResponseData struct + Body []byte + Cookies map[string]string + Status string + StatusCode int