Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
Cmd string
Target string
From string
Limit int
// JsonOutput is a flag that determines whether the output should be in JSON format.
JsonOutput bool
// Latency is a flag that outputs only stats of a measurement
Latency bool
// CI flag is used to determine whether the output should be in a format that is easy to parse by a CI tool
CI bool
}
Used in thc client TUI
type GetMeasurement ¶
type GetMeasurement struct {
ID string `json:"id"`
Type string `json:"type"`
Status string `json:"status"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
ProbesCount int `json:"probesCount"`
Results []MeasurementResponse `json:"results"`
}
Main struct
type MeasurementOptions ¶
type MeasurementOptions struct {
Query *QueryOptions `json:"query,omitempty"`
Request *RequestOptions `json:"request,omitempty"`
Protocol string `json:"protocol,omitempty"`
Port int `json:"port,omitempty"`
Resolver string `json:"resolver,omitempty"`
Trace bool `json:"trace,omitempty"`
Packets int `json:"packets,omitempty"`
}
type MeasurementResponse ¶
type MeasurementResponse struct {
Probe ProbeData `json:"probe"`
Result ResultData `json:"result"`
}
Nested structs
type PostMeasurement ¶
type PostMeasurement struct {
Limit int `json:"limit"`
Locations []Locations `json:"locations"`
Type string `json:"type"`
Target string `json:"target"`
InProgressUpdates bool `json:"inProgressUpdates"`
Options *MeasurementOptions `json:"measurementOptions,omitempty"`
}
Main struct
type PostResponse ¶
type QueryOptions ¶
type QueryOptions struct {
Type string `json:"type,omitempty"`
}
type RequestOptions ¶
type ResultData ¶
Click to show internal directories.
Click to hide internal directories.