Documentation
¶
Index ¶
- func ADVGetIPsfromHostname(host string, ipv int) ([]string, error)
- func ADVGetIPsfromHostname_port(host string, port int, ipv int) ([]string, error)
- func ToMap(proberes interface{}) (map[string]interface{}, error)
- type Probe
- type ProbeDuration
- type ProbeInfo
- type ProbeResult
- type ProbeReturn
- type Status
- type StepProbe
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ADVGetIPsfromHostname ¶
ADVGetIPsfromHostname returns a array of IPs resolved by a Hostname Ipv4 or Ipv6 This func must be divided WIP
Types ¶
type Probe ¶
type Probe interface { // Start run a Step TStep Run(timeout time.Duration) []ProbeReturn GetName() string Initialize(StepProbe) error GenerateTStepName() string }
Probe execute a testStep.
type ProbeDuration ¶ added in v0.5.0
func (ProbeDuration) MarshalJSON ¶ added in v0.5.0
func (d ProbeDuration) MarshalJSON() ([]byte, error)
type ProbeInfo ¶
type ProbeInfo struct { Error string `json:"error"` Status Status `json:"status"` ProbeCode int `json:"probecode"` ResponseTime time.Duration `json:"responsetime"` SubTest string `json:"subtest"` }
ProbeInfo details DO NOT EDIT
func (ProbeInfo) MarshalJSON ¶ added in v0.5.0
type ProbeResult ¶
type ProbeResult map[string]interface{}
type ProbeReturn ¶
type ProbeReturn struct { Res ProbeResult Err string Status Status }
ProbeReturn represents an probe result on a test step
Click to show internal directories.
Click to hide internal directories.