Documentation
¶
Index ¶
- func AddSuffix(start []byte, suffix string) []byte
- func AnycastSupported() bool
- func IsPrivateIp(a net.IP) bool
- func RandInt(max uint) uint
- type BlacklistData
- type ClientSubnet
- type DNSTelemetry
- type DefaultJSONObject
- type GeoLocation
- type GeoLookupData
- type ISP
- type Interface
- type InterfaceState
- type InterfaceType
- type Netblock
- type Position
- type StatsData
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnycastSupported ¶
func AnycastSupported() bool
func IsPrivateIp ¶
Types ¶
type BlacklistData ¶
type ClientSubnet ¶
type ClientSubnet struct {
IP string `json:"ip"`
Netmask int `json:"netmask"`
IPFamily string `json:"ip_family"`
DraftMode bool `json:"draft_mode"`
SubnetLoc *GeoLocation `json:"subnet_location"`
}
type DNSTelemetry ¶
type DNSTelemetry struct {
IP string `json:"ip"`
IPFamily string `json:"ip_family"`
NetType string `json:"net_type"`
TLSEnabled bool `json:"tls_enabled"`
DNSSECOk bool `json:"dnssec_enabled"`
NSIDEnabled bool `json:"nsid_requested"`
RequestTime uint64 `json:"request_time,string"`
KeepAlive bool `json:"tcp_keep_alive_enabled"`
KeepAliveTTL uint `json:"tcp_keep_alive_ms"`
Cookie bool `json:"dns_cookie"`
ExtraEDNS0 int `json:"additional_edns0_records"`
FlagRD bool `json:"recursion_desired"`
FlagCD bool `json:"checking_disabled"`
RequestLoc *GeoLocation `json:"request_location"`
Subnet *ClientSubnet `json:"client_subnet"`
NodeLoc *GeoLocation `json:"node_location"`
}
type DefaultJSONObject ¶
type GeoLocation ¶
type GeoLocation struct {
Position *Position `json:"position"`
ISP *ISP `json:"network"`
City string `json:"city"`
Country string `json:"country"`
CountryISO string `json:"iso_country"`
Location string `json:"location"`
LocationI18n map[string]string `json:"localized_location"`
TorNode *string `json:"tor_node"`
}
type GeoLookupData ¶
type GeoLookupData struct {
NodeLoc *GeoLocation `json:"node_location"`
RequestLoc *GeoLocation `json:"request_location"`
IP string `json:"ip_address"`
}
type InterfaceState ¶
type InterfaceState int
const ( StateUnknown InterfaceState = iota StateUp StateDown StateMissing StateCriticalFailure )
func (InterfaceState) String ¶
func (s InterfaceState) String() string
type InterfaceType ¶
type InterfaceType int
const ( TypeUnknown InterfaceType = iota TypeIPv4 TypeIPv6 )
func (InterfaceType) String ¶
func (t InterfaceType) String() string
Click to show internal directories.
Click to hide internal directories.