Documentation
¶
Index ¶
- Constants
- Variables
- func Execute()
- type MeasurementsBuffer
- type Root
- func (r *Root) GetHistory(limit int) ([]string, error)
- func (r *Root) RunDNS(cmd *cobra.Command, args []string) error
- func (r *Root) RunHTTP(cmd *cobra.Command, args []string) error
- func (r *Root) RunHistory(cmd *cobra.Command, args []string)
- func (r *Root) RunInstallProbe(cmd *cobra.Command, args []string)
- func (r *Root) RunMTR(cmd *cobra.Command, args []string) error
- func (r *Root) RunPing(cmd *cobra.Command, args []string) error
- func (r *Root) RunTraceroute(cmd *cobra.Command, args []string) error
- func (r *Root) RunVersion(cmd *cobra.Command, args []string)
- func (r *Root) UpdateHistory() error
- type TargetQuery
- type UrlData
Constants ¶
View Source
const ( // <version>|<index>|<time>|<id>|<command> HistoryItemVersion1 string = "1" )
View Source
const PostMeasurementTypeHttp = "http"
Variables ¶
View Source
var ( ErrNoPreviousMeasurements = errors.New("no previous measurements found") ErrInvalidIndex = errors.New("invalid index") ErrIndexOutOfRange = errors.New("index out of range") )
View Source
var (
ErrReadHistory = errors.New("failed to read history")
)
View Source
var SESSION_PATH string
Functions ¶
Types ¶
type MeasurementsBuffer ¶ added in v1.3.0
type MeasurementsBuffer struct {
// contains filtered or unexported fields
}
func NewMeasurementsBuffer ¶ added in v1.3.0
func NewMeasurementsBuffer(capacity int) *MeasurementsBuffer
func (*MeasurementsBuffer) Append ¶ added in v1.3.0
func (b *MeasurementsBuffer) Append(hm *view.HistoryItem)
func (*MeasurementsBuffer) CanAppend ¶ added in v1.3.0
func (b *MeasurementsBuffer) CanAppend() bool
func (*MeasurementsBuffer) Len ¶ added in v1.3.0
func (b *MeasurementsBuffer) Len() int
func (*MeasurementsBuffer) Next ¶ added in v1.3.0
func (b *MeasurementsBuffer) Next() *view.HistoryItem
func (*MeasurementsBuffer) Remove ¶ added in v1.3.0
func (b *MeasurementsBuffer) Remove(el *view.HistoryItem)
func (*MeasurementsBuffer) Restart ¶ added in v1.3.0
func (b *MeasurementsBuffer) Restart()
type Root ¶ added in v1.2.1
func (*Root) RunHistory ¶ added in v1.3.0
func (*Root) RunInstallProbe ¶ added in v1.2.1
func (*Root) RunTraceroute ¶ added in v1.2.1
func (*Root) RunVersion ¶ added in v1.2.1
func (*Root) UpdateHistory ¶ added in v1.3.0
type TargetQuery ¶ added in v1.2.1
Click to show internal directories.
Click to hide internal directories.