Documentation ¶
Index ¶
- func GetIPsFromHostname(host string, ipv int) ([]string, error)
- func GetIPsWithPort(host string, port int, ipv int) ([]string, error)
- func ToMap(proberes interface{}) (map[string]interface{}, error)
- type Probe
- type ProbeAnswer
- type ProbeDuration
- type ProbeInfo
- type ProbeReturn
- type Status
- type StepProbe
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIPsFromHostname ¶ added in v0.6.0
GetIPsFromHostname returns a array of IPs resolved by a Hostname Ipv4 or Ipv6 This func must be divided WIP
func GetIPsWithPort ¶ added in v0.6.0
Types ¶
type Probe ¶
type Probe interface { // Start run a Step TStep Run(timeout time.Duration) []ProbeReturn GetName() string Initialize(StepProbe) error GenerateTStepName() string GetDefaultTimeout() time.Duration GetDefaultFrequency() time.Duration }
Probe execute a testStep.
type ProbeAnswer ¶ added in v0.7.0
type ProbeAnswer map[string]interface{}
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 ProbeReturn ¶
type ProbeReturn struct { ProbeInfo ProbeInfo Answer ProbeAnswer }
ProbeReturn represents an probe result on a test step
Click to show internal directories.
Click to hide internal directories.