Versions in this module Expand all Collapse all v1 v1.0.0 Jun 10, 2022 Changes in this version + type Client struct + Endpoint string + Password string + UserName string + func NewClient(username string, password string, endpoint string) *Client + func (client *Client) AddAuthorizedIP(ip net.IP) error + func (client *Client) AddAuthorizedIPs(ips []net.IP) error + func (client *Client) Authenticate() error + func (client *Client) GetAuthorizedIPs() ([]net.IP, error) + func (client *Client) GetOwnedPublicIP() (net.IP, error) + func (client *Client) GetProxies() ([]*Proxy, error) + func (client *Client) RemoveAuthorizedIP(ip net.IP) error + func (client *Client) RemoveAuthorizedIPs(ips []net.IP) error + func (client *Client) SetAuthorizedIPs(ips []net.IP) error + func (client *Client) TestOwnedProxies() ([]bool, error) + func (client *Client) TestProxies(proxies []*Proxy) []bool + type FakeServer struct + AuthIPs []net.IP + Port int + func NewFakeServer(port int, authIPs []net.IP) *FakeServer + func (server *FakeServer) ServeForever() + func (server *FakeServer) StartServing() + func (server *FakeServer) Stop() + type MockHTTPClient struct + func (mock *MockHTTPClient) Get(url string) (resp *http.Response, err error) + func (mock *MockHTTPClient) PostForm(url string, data url.Values) (resp *http.Response, err error) + type Proxy struct + IP net.IP + Port uint16 + func MakeProxies(strings []string) ([]*Proxy, error) + func MakeProxy(str string) (*Proxy, error) + func (proxy *Proxy) String() string + type Result struct + Err error + Idx int64 + Val T + type SimpleHTTPClient interface + Get func(url string) (resp *http.Response, err error) + PostForm func(url string, data url.Values) (resp *http.Response, err error) + type Task struct + Fnc func() (T, error) + Idx int64 + type WorkerPool struct + func NewWorkerPool(count int) *WorkerPool[T] + func (pool *WorkerPool[T]) Close() + func (pool *WorkerPool[T]) Submit(f func() (T, error)) + func (pool *WorkerPool[T]) Wait() []*Result[T] + func (pool WorkerPool[T]) ResultErrors() []error + func (pool WorkerPool[T]) ResultValues() []T + func (pool WorkerPool[T]) Results() []*Result[T]