Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var NoHostFoundError = &ErrorResp{
Message: "hosts param is required",
}
Functions ¶
Types ¶
type HostIps ¶
type HostIps struct { Debug map[string]interface{} `json:"debug,omitempty"` Host string `json:"host"` Ips []Ip `json:"ips"` Ttl int `json:"ttl"` }
func (HostIps) Json ¶
func (h HostIps) Json(jw *fastjson.JsonWriter)
func (HostIps) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (HostIps) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*HostIps) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HostIps) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Ip ¶
type Ip struct { Ip string `json:"ip"` //Tags map[string]string `json:"tags,omitempty"` Port int `json:"port"` }
func (Ip) Json ¶
func (i Ip) Json(jw *fastjson.JsonWriter)
func (Ip) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Ip) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Ip) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Ip) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Responses ¶
type Responses struct { Dns []HostIps `json:"dns"` ClientIp string `json:"client_ip"` Mode string `json:"mode"` }
func (Responses) Json ¶
func (r Responses) Json(jw *fastjson.JsonWriter)
func (Responses) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Responses) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Responses) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Responses) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type U ¶
type U struct {
A int
}
func (U) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (U) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*U) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*U) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface