Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyIPInfo ¶
type ProxyIPInfo struct { ID uint `json:"-"` IpPort string `json:"ip"` // Port int `gorm:"not null"` Http bool Https bool Socks bool LastCheckTime string `json:"last_check_time"` Speed float64 `json:"speed"` Results string `json:"-"` Rate float64 `json:"rate"` Created string `json:"-"` Updated string `json:"-"` Checked bool `json:"-"` }
func GetAll ¶
func GetAll() (ips []*ProxyIPInfo, err error)
func GetReliability ¶
func GetReliability(num int, limit float64) (ips []*ProxyIPInfo, err error)
func (*ProxyIPInfo) CalcRate ¶
func (p *ProxyIPInfo) CalcRate()
func (*ProxyIPInfo) Deletable ¶
func (p *ProxyIPInfo) Deletable() bool
func (*ProxyIPInfo) Insert ¶
func (p *ProxyIPInfo) Insert() (err error)
func (*ProxyIPInfo) Update ¶
func (p *ProxyIPInfo) Update() (err error)
Click to show internal directories.
Click to hide internal directories.