Documentation ¶
Index ¶
- type Client
- func (r *Client) Close() error
- func (r *Client) GetOrderProxy(key string) (string, error)
- func (r *Client) GetOrderProxys(key string) ([]string, error)
- func (r *Client) GetProxy(key string) (string, error)
- func (r *Client) GetProxyData(key string) (Proxy, error)
- func (r *Client) GetProxyDatas(key string) ([]Proxy, error)
- func (r *Client) GetProxys(key string) ([]string, error)
- func (r *Client) HAll(name string) (map[string]string, error)
- func (r *Client) HDel(name string, key string) (int64, error)
- func (r *Client) HGet(name string, key string) (string, error)
- func (r *Client) HKeys(name string) ([]string, error)
- func (r *Client) HLen(name string) (int64, error)
- func (r *Client) HSet(name string, key string, val string) (bool, error)
- func (r *Client) HVals(name string) ([]string, error)
- func (r *Client) SAdd(name string, vals ...any) (int64, error)
- func (r *Client) SExists(name string, val any) (bool, error)
- func (r *Client) SLen(name string) (int64, error)
- func (r *Client) SPop(name string) (string, error)
- func (r *Client) SRem(name string, vals ...any) (int64, error)
- func (r *Client) SVals(name string) ([]string, error)
- type ClientOption
- type Proxy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(option ClientOption) (*Client, error)
func (*Client) GetOrderProxy ¶
随机获取代理(有序)
func (*Client) GetOrderProxys ¶
获取所有代理,排序后的
type ClientOption ¶
Click to show internal directories.
Click to hide internal directories.