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 = "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 DontFollowRedirects bool `json:"follow_redirects"` IpVersion int `json:"ip_version"` // Optional Resolve IPv4, IPv6, or Both (default 0=both) Proxy string `json:"proxy"` UserAgent string `json:"user_agent"` // 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) 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 { 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.