common

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package common @Author W @Date 2024/4/24 @desc

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AloneGetIps

type AloneGetIps struct {
	// contains filtered or unexported fields
}

独享代理 -- 获取独享代理详情

func (*AloneGetIps) City_code

func (a *AloneGetIps) City_code() string

func (*AloneGetIps) City_name

func (a *AloneGetIps) City_name() string

func (*AloneGetIps) Key

func (a *AloneGetIps) Key() string

func (*AloneGetIps) Order_endtime

func (a *AloneGetIps) Order_endtime() string

func (*AloneGetIps) SetCity_code

func (a *AloneGetIps) SetCity_code(city_code string)

func (*AloneGetIps) SetCity_name

func (a *AloneGetIps) SetCity_name(city_name string)

func (*AloneGetIps) SetKey

func (a *AloneGetIps) SetKey(key string)

func (*AloneGetIps) SetOrder_endtime

func (a *AloneGetIps) SetOrder_endtime(order_endtime string)

func (*AloneGetIps) SetSock_port

func (a *AloneGetIps) SetSock_port(sock_port string)

func (*AloneGetIps) SetTrade_no

func (a *AloneGetIps) SetTrade_no(trade_no string)

func (*AloneGetIps) Sock_port

func (a *AloneGetIps) Sock_port() string

func (*AloneGetIps) Trade_no

func (a *AloneGetIps) Trade_no() string

type AloneGetWhiteIp

type AloneGetWhiteIp struct {
	// contains filtered or unexported fields
}

独享代理 -- 获取代理IP白名单

func (*AloneGetWhiteIp) Key

func (a *AloneGetWhiteIp) Key() string

func (*AloneGetWhiteIp) SetKey

func (a *AloneGetWhiteIp) SetKey(key string)

func (*AloneGetWhiteIp) SetTrade_no

func (a *AloneGetWhiteIp) SetTrade_no(trade_no string)

func (*AloneGetWhiteIp) Trade_no

func (a *AloneGetWhiteIp) Trade_no() string

type AloneReplaceWhiteIp added in v0.0.2

type AloneReplaceWhiteIp struct {
	// contains filtered or unexported fields
}

独享代理 -- 替换IP白名单

func (*AloneReplaceWhiteIp) Key added in v0.0.2

func (a *AloneReplaceWhiteIp) Key() string

func (*AloneReplaceWhiteIp) New_ip added in v0.0.2

func (a *AloneReplaceWhiteIp) New_ip() string

func (*AloneReplaceWhiteIp) Old_ip added in v0.0.2

func (a *AloneReplaceWhiteIp) Old_ip() string

func (*AloneReplaceWhiteIp) Reset added in v0.0.2

func (a *AloneReplaceWhiteIp) Reset() string

func (*AloneReplaceWhiteIp) SetKey added in v0.0.2

func (a *AloneReplaceWhiteIp) SetKey(key string)

func (*AloneReplaceWhiteIp) SetNew_ip added in v0.0.2

func (a *AloneReplaceWhiteIp) SetNew_ip(new_ip string)

func (*AloneReplaceWhiteIp) SetOld_ip added in v0.0.2

func (a *AloneReplaceWhiteIp) SetOld_ip(old_ip string)

func (*AloneReplaceWhiteIp) SetReset added in v0.0.2

func (a *AloneReplaceWhiteIp) SetReset(reset string)

func (*AloneReplaceWhiteIp) SetTrade_no added in v0.0.2

func (a *AloneReplaceWhiteIp) SetTrade_no(trade_no string)

func (*AloneReplaceWhiteIp) Trade_no added in v0.0.2

func (a *AloneReplaceWhiteIp) Trade_no() string

type AloneSetWhiteIp

type AloneSetWhiteIp struct {
	// contains filtered or unexported fields
}

独享代理 -- 设置代理IP白名单

func (*AloneSetWhiteIp) Ips

func (a *AloneSetWhiteIp) Ips() string

func (*AloneSetWhiteIp) Key

func (a *AloneSetWhiteIp) Key() string

func (*AloneSetWhiteIp) SetIps

func (a *AloneSetWhiteIp) SetIps(ips string)

func (*AloneSetWhiteIp) SetKey

func (a *AloneSetWhiteIp) SetKey(key string)

func (*AloneSetWhiteIp) SetTrade_no

func (a *AloneSetWhiteIp) SetTrade_no(trade_no string)

func (*AloneSetWhiteIp) Trade_no

func (a *AloneSetWhiteIp) Trade_no() string

type CompanyDynamic added in v1.2.0

type CompanyDynamic struct {
	TradeNo    string `json:"trade_no"`    //业务编号
	Num        string `json:"num"`         //提取数量
	Pt         string `json:"pt"`          //代理类型
	ResultType string `json:"result_type"` //返回类型
	Split      string `json:"split"`       //结果分隔符
	AuthType   string `json:"auth_type"`   // 认证类型
	Province   string `json:"province"`    //省份  只能填写一个省份
	City       string `json:"city"`        //城市  只能填写一个城市(省份和城市不匹配时,以城市为主)
	IpRemain   string `json:"ip_remain"`   //剩余数量
	Filter     string `json:"filter"`      //去重
	Key        string `json:"key"`         //密钥
}

CompanyDynamic 提取动态代理

type CompanyDynamicDelWhiteIp added in v1.2.0

type CompanyDynamicDelWhiteIp struct {
	TradeNo string `json:"trade_no"` //业务编号
	DelIp   string `json:"del_ip"`   //新IP
	Key     string `json:"key"`      //密钥
}

CompanyDynamicDelWhiteIp 删除白名单

type CompanyDynamicGetWhiteIp added in v1.2.0

type CompanyDynamicGetWhiteIp struct {
	TradeNo string `json:"trade_no"` //业务编号
	Key     string `json:"key"`      //密钥
}

CompanyDynamicGetWhiteIp 获取白名单

type CompanyDynamicSetWhiteIp added in v1.2.0

type CompanyDynamicSetWhiteIp struct {
	TradeNo string `json:"trade_no"` //业务编号
	Ips     string `json:"ips"`      //IPs
	Key     string `json:"key"`      //密钥
}

CompanyDynamicSetWhiteIp 设置白名单

type CompanyPostPayDelWhiteIp added in v1.2.0

type CompanyPostPayDelWhiteIp struct {
	TradeNo string `json:"trade_no"` //业务编号
	DelIp   string `json:"del_ip"`   //新IP
	Key     string `json:"key"`      //密钥
}

CompanyPostPayDelWhiteIp 删除白名单

type CompanyPostPayGetIps added in v1.2.0

type CompanyPostPayGetIps struct {
	TradeNo    string `json:"trade_no"`    //业务编号
	Num        string `json:"num"`         //提取数量
	Pt         string `json:"pt"`          //代理类型
	ResultType string `json:"result_type"` //返回类型
	Split      string `json:"split"`       //结果分隔符
	AuthType   string `json:"auth_type"`   // 认证类型
	Province   string `json:"province"`    //省份  只能填写一个省份
	City       string `json:"city"`        //城市  只能填写一个城市(省份和城市不匹配时,以城市为主)
	IpRemain   string `json:"ip_remain"`   //剩余数量
	Filter     string `json:"filter"`      //去重
	Key        string `json:"key"`         //密钥
}

CompanyPostPayGetIps 提取动态代理

type CompanyPostPayGetWhiteIp added in v1.2.0

type CompanyPostPayGetWhiteIp struct {
	TradeNo string `json:"trade_no"` //业务编号
	Key     string `json:"key"`      //密钥
}

CompanyPostPayGetWhiteIp 获取白名单

type CompanyPostPaySetWhiteIp added in v1.2.0

type CompanyPostPaySetWhiteIp struct {
	TradeNo string `json:"trade_no"` //业务编号
	Ips     string `json:"ips"`      //IPs
	Key     string `json:"key"`      //密钥
}

CompanyPostPaySetWhiteIp 设置白名单

type DynamicBalance

type DynamicBalance struct {
	// contains filtered or unexported fields
}

动态代理 -- 获取剩余可提取IP数量

func (*DynamicBalance) Key

func (d *DynamicBalance) Key() string

func (*DynamicBalance) SetKey

func (d *DynamicBalance) SetKey(key string)

func (*DynamicBalance) SetTrade_no

func (d *DynamicBalance) SetTrade_no(trade_no string)

func (*DynamicBalance) Trade_no

func (d *DynamicBalance) Trade_no() string

type DynamicCheck

type DynamicCheck struct {
	// contains filtered or unexported fields
}

动态代理 -- 校验代理有效性

func (*DynamicCheck) Key

func (d *DynamicCheck) Key() string

func (*DynamicCheck) Proxy

func (d *DynamicCheck) Proxy() string

func (*DynamicCheck) SetKey

func (d *DynamicCheck) SetKey(key string)

func (*DynamicCheck) SetProxy

func (d *DynamicCheck) SetProxy(proxy string)

func (*DynamicCheck) SetTrade_no

func (d *DynamicCheck) SetTrade_no(trade_no string)

func (*DynamicCheck) Trade_no

func (d *DynamicCheck) Trade_no() string

type DynamicGetIps

type DynamicGetIps struct {
	// contains filtered or unexported fields
}

动态代理 -- 提取动态代理

func (*DynamicGetIps) Area

func (d *DynamicGetIps) Area() string

func (*DynamicGetIps) City_code

func (d *DynamicGetIps) City_code() string

func (*DynamicGetIps) City_name

func (d *DynamicGetIps) City_name() string

func (*DynamicGetIps) Filter

func (d *DynamicGetIps) Filter() string

func (*DynamicGetIps) Ip_remain

func (d *DynamicGetIps) Ip_remain() string

func (*DynamicGetIps) Ip_seg

func (d *DynamicGetIps) Ip_seg() string

func (*DynamicGetIps) Isp

func (d *DynamicGetIps) Isp() string

func (*DynamicGetIps) Key

func (d *DynamicGetIps) Key() string

func (*DynamicGetIps) No_area

func (d *DynamicGetIps) No_area() string

func (*DynamicGetIps) No_ip_seg

func (d *DynamicGetIps) No_ip_seg() string

func (*DynamicGetIps) Num

func (d *DynamicGetIps) Num() string

func (*DynamicGetIps) Pt

func (d *DynamicGetIps) Pt() string

func (*DynamicGetIps) Result_type

func (d *DynamicGetIps) Result_type() string

func (*DynamicGetIps) SetArea

func (d *DynamicGetIps) SetArea(area string)

func (*DynamicGetIps) SetCity_code

func (d *DynamicGetIps) SetCity_code(city_code string)

func (*DynamicGetIps) SetCity_name

func (d *DynamicGetIps) SetCity_name(city_name string)

func (*DynamicGetIps) SetFilter

func (d *DynamicGetIps) SetFilter(filter string)

func (*DynamicGetIps) SetIp_remain

func (d *DynamicGetIps) SetIp_remain(ip_remain string)

func (*DynamicGetIps) SetIp_seg

func (d *DynamicGetIps) SetIp_seg(ip_seg string)

func (*DynamicGetIps) SetIsp

func (d *DynamicGetIps) SetIsp(isp string)

func (*DynamicGetIps) SetKey

func (d *DynamicGetIps) SetKey(key string)

func (*DynamicGetIps) SetNo_area

func (d *DynamicGetIps) SetNo_area(no_area string)

func (*DynamicGetIps) SetNo_ip_seg

func (d *DynamicGetIps) SetNo_ip_seg(no_ip_seg string)

func (*DynamicGetIps) SetNum

func (d *DynamicGetIps) SetNum(num string)

func (*DynamicGetIps) SetPt

func (d *DynamicGetIps) SetPt(pt string)

func (*DynamicGetIps) SetResult_type

func (d *DynamicGetIps) SetResult_type(result_type string)

func (*DynamicGetIps) SetSplit

func (d *DynamicGetIps) SetSplit(split string)

func (*DynamicGetIps) SetTrade_no

func (d *DynamicGetIps) SetTrade_no(trade_no string)

func (*DynamicGetIps) Split

func (d *DynamicGetIps) Split() string

func (*DynamicGetIps) Trade_no

func (d *DynamicGetIps) Trade_no() string

type DynamicGetWhiteIp

type DynamicGetWhiteIp struct {
	// contains filtered or unexported fields
}

动态代理 -- 获取代理IP白名单

func (*DynamicGetWhiteIp) Key

func (d *DynamicGetWhiteIp) Key() string

func (*DynamicGetWhiteIp) SetKey

func (d *DynamicGetWhiteIp) SetKey(key string)

func (*DynamicGetWhiteIp) SetTrade_no

func (d *DynamicGetWhiteIp) SetTrade_no(trade_no string)

func (*DynamicGetWhiteIp) Trade_no

func (d *DynamicGetWhiteIp) Trade_no() string

type DynamicRemain

type DynamicRemain struct {
	// contains filtered or unexported fields
}

动态代理 -- 获取代理剩余可用时长

func (*DynamicRemain) Key

func (d *DynamicRemain) Key() string

func (*DynamicRemain) Proxy

func (d *DynamicRemain) Proxy() string

func (*DynamicRemain) SetKey

func (d *DynamicRemain) SetKey(key string)

func (*DynamicRemain) SetProxy

func (d *DynamicRemain) SetProxy(proxy string)

func (*DynamicRemain) SetTrade_no

func (d *DynamicRemain) SetTrade_no(trade_no string)

func (*DynamicRemain) Trade_no

func (d *DynamicRemain) Trade_no() string

type DynamicReplaceWhiteIp added in v0.0.2

type DynamicReplaceWhiteIp struct {
	// contains filtered or unexported fields
}

动态代理 -- 替换IP白名单

func (*DynamicReplaceWhiteIp) Key added in v0.0.2

func (d *DynamicReplaceWhiteIp) Key() string

func (*DynamicReplaceWhiteIp) New_ip added in v0.0.2

func (d *DynamicReplaceWhiteIp) New_ip() string

func (*DynamicReplaceWhiteIp) Old_ip added in v0.0.2

func (d *DynamicReplaceWhiteIp) Old_ip() string

func (*DynamicReplaceWhiteIp) Reset added in v0.0.2

func (d *DynamicReplaceWhiteIp) Reset() string

func (*DynamicReplaceWhiteIp) SetKey added in v0.0.2

func (d *DynamicReplaceWhiteIp) SetKey(key string)

func (*DynamicReplaceWhiteIp) SetNew_ip added in v0.0.2

func (d *DynamicReplaceWhiteIp) SetNew_ip(new_ip string)

func (*DynamicReplaceWhiteIp) SetOld_ip added in v0.0.2

func (d *DynamicReplaceWhiteIp) SetOld_ip(old_ip string)

func (*DynamicReplaceWhiteIp) SetReset added in v0.0.2

func (d *DynamicReplaceWhiteIp) SetReset(reset string)

func (*DynamicReplaceWhiteIp) SetTrade_no added in v0.0.2

func (d *DynamicReplaceWhiteIp) SetTrade_no(trade_no string)

func (*DynamicReplaceWhiteIp) Trade_no added in v0.0.2

func (d *DynamicReplaceWhiteIp) Trade_no() string

type DynamicSetWhiteIp

type DynamicSetWhiteIp struct {
	// contains filtered or unexported fields
}

动态代理 -- 设置代理IP白名单

func (*DynamicSetWhiteIp) Ips

func (d *DynamicSetWhiteIp) Ips() string

func (*DynamicSetWhiteIp) Key

func (d *DynamicSetWhiteIp) Key() string

func (*DynamicSetWhiteIp) SetIps

func (d *DynamicSetWhiteIp) SetIps(ips string)

func (*DynamicSetWhiteIp) SetKey

func (d *DynamicSetWhiteIp) SetKey(key string)

func (*DynamicSetWhiteIp) SetTrade_no

func (d *DynamicSetWhiteIp) SetTrade_no(trade_no string)

func (*DynamicSetWhiteIp) Trade_no

func (d *DynamicSetWhiteIp) Trade_no() string

type PostPayCheckIps added in v1.0.0

type PostPayCheckIps struct {
	TradeNo string `json:"trade_no"` //业务编号
	Proxy   string `json:"proxy"`    //代理IP,多个英文逗号分割
	Key     string `json:"key"`      //密钥
}

PostPayCheckIps 检测代理IP

type PostPayGetIps added in v1.0.0

type PostPayGetIps struct {
	TradeNo    string `json:"trade_no"`    //业务编号
	Num        string `json:"num"`         //提取数量
	Pt         string `json:"pt"`          //代理类型
	ResultType string `json:"result_type"` //返回类型
	Split      string `json:"split"`       //结果分隔符
	CityName   string `json:"city_name"`   //城市名称
	CityCode   string `json:"city_code"`   //城市编码
	IpRemain   string `json:"ip_remain"`   //剩余数量
	Area       string `json:"area"`        //地区
	NoArea     string `json:"no_area"`     //排除地区
	IpSeg      string `json:"ip_seg"`      //ip段
	NoIpSeg    string `json:"no_ip_seg"`   //排除ip段
	Isp        string `json:"isp"`         //运营商
	Filter     string `json:"filter"`      //去重
	Key        string `json:"key"`         //密钥
}

PostPayGetIps 提取动态代理

type PostPayGetWhiteIp added in v1.0.0

type PostPayGetWhiteIp struct {
	TradeNo string `json:"trade_no"` //业务编号
	Key     string `json:"key"`      //密钥
}

PostPayGetWhiteIp 获取白名单

type PostPayReplaceWhiteIp added in v1.0.0

type PostPayReplaceWhiteIp struct {
	TradeNo string `json:"trade_no"` //业务编号
	NewIp   string `json:"new_ip"`   //新IP
	OldIp   string `json:"old_ip"`   //旧IP
	Reset   string `json:"reset"`    //是否重置
	Key     string `json:"key"`      //密钥
}

PostPayReplaceWhiteIp 替换白名单

type PostPaySetWhiteIp added in v1.0.0

type PostPaySetWhiteIp struct {
	TradeNo string `json:"trade_no"` //业务编号
	Ips     string `json:"ips"`      //IPs
	Key     string `json:"key"`      //密钥
}

PostPaySetWhiteIp 设置白名单

type UnlimitedGetIps added in v1.1.0

type UnlimitedGetIps struct {
	TradeNo    string `json:"trade_no"`    //业务编号
	Num        string `json:"num"`         //提取数量
	Pt         string `json:"pt"`          //代理类型
	ResultType string `json:"result_type"` //返回类型
	Split      string `json:"split"`       //结果分隔符
	CityName   string `json:"city_name"`   //城市名称
	CityCode   string `json:"city_code"`   //城市编码
	IpRemain   string `json:"ip_remain"`   //剩余数量
	Key        string `json:"key"`         //密钥
}

UnlimitedGetIps 不限量 -- 提取ip

type UnlimitedGetWhiteIp added in v1.1.0

type UnlimitedGetWhiteIp struct {
	TradeNo string `json:"trade_no"` //业务编号
	Key     string `json:"key"`      //密钥
}

UnlimitedGetWhiteIp 不限量 -- 获取白名单

type UnlimitedReplaceWhiteIp added in v1.1.0

type UnlimitedReplaceWhiteIp struct {
	TradeNo string `json:"trade_no"` //业务编号
	NewIp   string `json:"new_ip"`   //新IP
	OldIp   string `json:"old_ip"`   //旧IP
	Reset   string `json:"reset"`    //是否重置
	Key     string `json:"key"`      //密钥
}

UnlimitedReplaceWhiteIp 不限量 -- 替换白名单

type UnlimitedSetWhiteIp added in v1.1.0

type UnlimitedSetWhiteIp struct {
	TradeNo string `json:"trade_no"` //业务编号
	Ips     string `json:"ips"`      //IPs
	Key     string `json:"key"`      //密钥
}

UnlimitedSetWhiteIp 不限量 -- 设置白名单

type UsersGetAllOrders added in v0.0.3

type UsersGetAllOrders struct {
	// contains filtered or unexported fields
}

账户 -- 获取账户下对应类型的所有正常状态订单

func (*UsersGetAllOrders) Attach_key added in v1.0.0

func (u *UsersGetAllOrders) Attach_key() string

func (*UsersGetAllOrders) Key added in v0.0.3

func (u *UsersGetAllOrders) Key() string

func (*UsersGetAllOrders) Product_type added in v0.0.3

func (u *UsersGetAllOrders) Product_type() string

func (*UsersGetAllOrders) SetAttach_key added in v1.0.0

func (u *UsersGetAllOrders) SetAttach_key(attach_key string)

func (*UsersGetAllOrders) SetKey added in v0.0.3

func (u *UsersGetAllOrders) SetKey(key string)

func (*UsersGetAllOrders) SetProduct_type added in v0.0.3

func (u *UsersGetAllOrders) SetProduct_type(product_type string)

func (*UsersGetAllOrders) SetUser_id added in v0.0.3

func (u *UsersGetAllOrders) SetUser_id(user_id string)

func (*UsersGetAllOrders) User_id added in v0.0.3

func (u *UsersGetAllOrders) User_id() string

type UsersGetBalance

type UsersGetBalance struct {
	// contains filtered or unexported fields
}

账户 -- 获取账户余额

func (*UsersGetBalance) Key

func (u *UsersGetBalance) Key() string

func (*UsersGetBalance) SetKey

func (u *UsersGetBalance) SetKey(key string)

func (*UsersGetBalance) SetUser_id

func (u *UsersGetBalance) SetUser_id(user_id string)

func (*UsersGetBalance) User_id

func (u *UsersGetBalance) User_id() string

type UsersGetCity added in v0.0.4

type UsersGetCity struct {
	// contains filtered or unexported fields
}

func (*UsersGetCity) Key added in v0.0.4

func (u *UsersGetCity) Key() string

func (*UsersGetCity) Province added in v0.0.4

func (u *UsersGetCity) Province() string

func (*UsersGetCity) SetKey added in v0.0.4

func (u *UsersGetCity) SetKey(key string)

func (*UsersGetCity) SetProvince added in v0.0.4

func (u *UsersGetCity) SetProvince(province string)

func (*UsersGetCity) SetUser_id added in v0.0.4

func (u *UsersGetCity) SetUser_id(user_id string)

func (*UsersGetCity) User_id added in v0.0.4

func (u *UsersGetCity) User_id() string

Jump to

Keyboard shortcuts

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