Documentation ¶
Overview ¶
Package ns provides name server methods for selected name server(s)
Index ¶
- type Host
- type Request
- func (d *Request) ChkCountry(country string) bool
- func (d *Request) ChkNode(city string) bool
- func (d *Request) CountryList() []string
- func (d *Request) Dig()
- func (d *Request) Init()
- func (d *Request) Local()
- func (d *Request) NodeList() []string
- func (d *Request) RunDig()
- func (d *Request) RunDigTrace()
- func (d *Request) SetOptions(args, prompt string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
A Host represents a name server host
type Request ¶
type Request struct { Country string City string Target string Type uint16 Host string Hosts []Host TraceEnabled bool }
A Request represents a name server request
func (*Request) ChkCountry ¶
ChkCountry validates and set requested country
func (*Request) CountryList ¶ added in v0.1.8
CountryList init the connect contry items
func (*Request) Local ¶ added in v0.1.7
func (d *Request) Local()
Local set host to nothing means local
func (*Request) NodeList ¶ added in v0.1.8
NodeList gets the node city items
Click to show internal directories.
Click to hide internal directories.