Documentation
¶
Index ¶
- Constants
- func New() probe.Probe
- type Probe
- func (p *Probe) GenerateTStepName() string
- func (Probe) GetDefaultFrequency() time.Duration
- func (Probe) GetDefaultTimeout() time.Duration
- func (Probe) GetName() string
- func (p *Probe) Initialize(step probe.StepProbe) error
- func (p *Probe) Run(timeout time.Duration) (probeReturns []probe.ProbeReturn)
- type ProbeAnswer
Constants ¶
View Source
const Name = "dns"
Name of the probe
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Probe ¶
type Probe struct { FQDN string `json:"fqdn"` // IP or Hostname RecordType string `json:"recordtype"` // Record Type to Lookup StrictAnswer bool `json:"strictanswer"` // Attend uniquement la valeur NameServers []string `json:"nameservers"` // Send Request to a specified Nameserver }
Probe struct. Json and yaml descriptor are used for json output
func (*Probe) GenerateTStepName ¶
GenerateTStepName return a tstep name if non existent
func (Probe) GetDefaultFrequency ¶ added in v0.6.0
func (Probe) GetDefaultTimeout ¶ added in v0.6.0
func (*Probe) Initialize ¶
Initialize Probe struct data
type ProbeAnswer ¶
type ProbeAnswer struct { Answer []string `json:"answer"` TTL uint32 `json:"ttl"` ResponseTime float64 `json:"responsetime"` // Reference Time Unit = Second Class string `json:"class"` Priority int `json:"priority"` Weight int `json:"weight"` Port int `json:"port"` Target string `json:"target"` Proto string `json:"proto"` ProbeInfo probe.ProbeInfo `json:"probeinfo"` }
ProbeAnswer is the returned result after query Every DNS Probe should have a different ProbeAnswer For now All in One
Click to show internal directories.
Click to hide internal directories.