struct_

package
v0.0.0-...-61dcd84 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL