Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Checker ¶
type Checker struct { Cfg Config // contains filtered or unexported fields }
func NewChecker ¶
func (Checker) CheckProxies ¶
func (c Checker) CheckProxies() (ProxyResults, error)
func (Checker) CheckProxy ¶
func (c Checker) CheckProxy(proxy Proxy) (result ProxyResult)
type Config ¶
type ProxyResult ¶
type ProxyResult struct { Proxy Proxy State ProxyResultState Error error IP string Status int }
func (ProxyResult) SetError ¶
func (pr ProxyResult) SetError(err error) ProxyResult
func (ProxyResult) String ¶
func (pr ProxyResult) String() string
type ProxyResultState ¶
type ProxyResultState int
const ( Unknown ProxyResultState = iota ProxyInvalid Timeout Error Forbidden Success )
func (ProxyResultState) String ¶
func (st ProxyResultState) String() string
type ProxyResults ¶
type ProxyResults []ProxyResult
func (ProxyResults) Len ¶
func (prs ProxyResults) Len() int
func (ProxyResults) Less ¶
func (prs ProxyResults) Less(i, j int) bool
func (ProxyResults) Swap ¶
func (prs ProxyResults) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.