Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Judgement ¶
type Judgement struct {
//Possible values
// 0: Non Anon: Your ip is known, proxy usage is known
// 1: Non Anon: Your ip is known, proxy usage unknown
// 2: Semi Anon: Your ip is unknown, proxy usage known
// 3: Anon: Your ip is unknown, proxy usage unknown
AnonType int `json:"anon_type"`
Messages []string `json:"messages"`
Country string `json:"country"`
RealIP string `json:"real_ip"`
RemoteIP net.IP `json:"remote_ip"`
}
Judgement contains information about a given proxy
func (*Judgement) AppendMessages ¶
AppendMessages appends result messages
func (Judgement) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Judgement) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Judgement) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Judgement) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Proxy ¶
Proxy represent an proxy object containing ip, port, and the proxy type
func FromIpv4String ¶
FromIpv4String converts ipv4 string (xxx.xx.xxx.xxx:xxxxx) to a Proxy object
func (Proxy) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Proxy) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Proxy) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Proxy) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface