Documentation ¶
Index ¶
- Constants
- Variables
- type BaseConf
- func (c *BaseConf) CheckIP() (map[string]any, error)
- func (c BaseConf) DnsLookup(ipOrHost, q string) ([]map[string]any, error)
- func (c BaseConf) OpenPort(ipOrHost string, prot uint16) (bool, error)
- func (c *BaseConf) Ping(ipOrHost string) (map[string]any, error)
- func (c BaseConf) ReverseLookup(ip string) (string, error)
- func (c BaseConf) UpdateIp() (bool, error)
Constants ¶
View Source
const ( API = "https://api.dnslab.link/" IP = API + "IP/" PING = API + "IP/Ping?hostOrIPAddress=%s" OPEN = API + "IP/IsIPAndPortOpen?hostOrIPAddress=%s&port=%d" DNS_LOOKUP = API + "DNSLookUp/Query?Query=%s&queryType=%s" REVERSELookup = API + "DNSLookUp/QueryReverse?IPAddress=%s" DNS_REF = API + "DNS/UDIBT?k=%s" )
* all url and path for request to api * %s set in program
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BaseConf ¶
type BaseConf struct {
// contains filtered or unexported fields
}
* basic config for request to api
func (*BaseConf) CheckIP ¶
* check system ip with request to api.dnslab.link * and set ip4 and ip6 and port for config
func (BaseConf) ReverseLookup ¶
* Reverse lookup ip/host and return string
Click to show internal directories.
Click to hide internal directories.