Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteIPProxy ¶
func DeleteIPProxy(req *DeleteIPProxyRequest) error
func GetIPProxyCount ¶
func GetIPProxyCount() int64
func UpsertIPProxy ¶
Types ¶
type DeleteIPProxyRequest ¶
type IPProxy ¶
type IPProxy struct { ID uint64 `gorm:"primaryKey;autoIncrement"` IP string `gorm:"type:varchar(63);not null;uniqueIndex:idx_ip_port"` Port int `gorm:"not null;uniqueIndex:idx_ip_port"` Type ProxyType `gorm:"not null"` Protocol ProtocolType `gorm:"not null"` Country string `gorm:"type:varchar(63)"` Region string `gorm:"type:varchar(63)"` ISP string `gorm:"type:varchar(63)"` Source string `gorm:"type:varchar(63);not null"` UpdatedAt int64 `gorm:"not null"` }
func ListIPProxy ¶
func ListIPProxy(req *ListIPProxyRequest) []*IPProxy
type ListIPProxyRequest ¶
type ListIPProxyRequest struct { Type ProxyType `form:"type" json:"type"` Protocol ProtocolType `form:"protocol" json:"protocol"` Limit int64 `form:"limit" json:"limit"` }
Click to show internal directories.
Click to hide internal directories.