Documentation
¶
Index ¶
Constants ¶
View Source
const Name = "http"
Name of the probe
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Probe ¶
type Probe struct { Method string `json:"method"` // Optional (GET, POST...) RFC 7231 section 4.3. (PATCH RFC 5789) Default=GET Version int `json:"version"` // Optional (1.0, 1.1, 2.0) Default=1.1 URL string `json:"url"` // Full url http://fqdn.tld/path Body string `json:"body"` BodyFile string `json:"bodyfile"` Headers Headers `json:"headers"` IgnoreVerifySSL bool `json:"ignore_verify_ssl"` // Optional Default=false BasicAuthUser string `json:"basic_auth_user"` // Optional BasicAuth User BasicAuthPassword string `json:"basic_auth_password"` // Optional BasicAuth Password FollowRedirects bool `json:"follow_redirects"` IpVersion int `json:"ip_version"` // Optional Resolve IPv4, IPv6, or Both (default 0=both) Proxy string `json:"proxy"` // contains filtered or unexported fields }
Probe struct : Informations necessaires à l'execution de la probe All attributes must be Public
func (*Probe) GenerateTStepName ¶
GenerateTStepName return a tstep name if non existent
func (*Probe) Initialize ¶
Initialize Probe struct data
type ProbeAnswer ¶
type ProbeAnswer struct { ProbeInfo probe.ProbeInfo `json:"probeinfo"` HTTPcode int `json:"httpcode" ` Body string `json:"body"` BodyJSON interface{} `json:"bodyjson"` Headers Headers `json:"headers"` ResponsesTime responsestime `json:"responses_time"` }
ProbeAnswer is the returned result after query All attributes must be Public ProbeInfo is Mandatory => Détail l'execution de la probe
Click to show internal directories.
Click to hide internal directories.