Versions in this module Expand all Collapse all v0 v0.6.0 Jul 8, 2024 v0.5.0 Jan 5, 2022 v0.4.0 Oct 6, 2021 v0.3.0 Dec 8, 2020 v0.2.0 Jul 29, 2020 v0.1.0 Mar 30, 2020 Changes in this version + func CloseDB() error + func DeleteBwTestItemsBefore(before string) (int64, error) + func DeleteEchoItemsBefore(before string) (int64, error) + func DeleteTrHopItemsBefore(before string) (int64, error) + func DeleteTracerouteItemsBefore(before string) (int64, error) + func InitDB(filepath string) error + func LoadDB() error + func MaintainDatabase() + func StoreBwTestItem(bwtest *BwTestItem) error + func StoreEchoItem(echo *EchoItem) error + func StoreTrHopItem(hop *TrHopItem) error + func StoreTracerouteItem(tr *TracerouteItem) error + type BwTestGraph struct + ActualDuration int + CSBandwidth int + CSThroughput int + Error string + Inserted int64 + Log string + Path string + SCBandwidth int + SCThroughput int + func ReadBwTestItemsSince(since string) ([]BwTestGraph, error) + type BwTestItem struct + ActualDuration int + CAddr string + CIa string + CPort int + CSArrAvg int + CSArrMax int + CSArrMin int + CSArrVar int + CSBandwidth int + CSDuration int + CSPackets int + CSPktSize int + CSThroughput int + Error string + Inserted int64 + Log string + Path string + SAddr string + SCArrAvg int + SCArrMax int + SCArrMin int + SCArrVar int + SCBandwidth int + SCDuration int + SCPackets int + SCPktSize int + SCThroughput int + SIa string + SPort int + func ReadBwTestItemsAll() ([]BwTestItem, error) + func (bwtest BwTestItem) GetHeaders() []string + func (bwtest BwTestItem) ToSlice() []string + type CmdItem interface + GetHeaders func() []string + ToSlice func() []string + type EchoGraph struct + ActualDuration int + CmdOutput string + Error string + Inserted int64 + Path string + PktLoss int + ResponseTime float32 + RunTime float32 + func ReadEchoItemsSince(since string) ([]EchoGraph, error) + type EchoItem struct + ActualDuration int + CAddr string + CIa string + CmdOutput string + Count int + Error string + Inserted int64 + Interval float32 + Path string + PktLoss int + ResponseTime float32 + RunTime float32 + SAddr string + SIa string + Timeout float32 + func ReadEchoItemsAll() ([]EchoItem, error) + func (echo EchoItem) GetHeaders() []string + func (echo EchoItem) ToSlice() []string + type ReducedTrHopItem struct + HopAddr string + HopIa string + IntfID int + RespTime1 float32 + RespTime2 float32 + RespTime3 float32 + type TrHopItem struct + HopAddr string + HopIa string + Inserted int64 + IntfID int + Ord int + RespTime1 float32 + RespTime2 float32 + RespTime3 float32 + RunTimeKey int64 + func (hop TrHopItem) GetHeaders() []string + func (hop TrHopItem) ToSlice() []string + type TracerouteGraph struct + ActualDuration int + CmdOutput string + Error string + Inserted int64 + Path string + TrHops []ReducedTrHopItem + func ReadTracerouteItemsSince(since string) ([]TracerouteGraph, error) + type TracerouteHelper struct + ActualDuration int + CmdOutput string + Error string + HopAddr string + HopIa string + Inserted int64 + IntfID int + Ord int + Path string + RespTime1 float32 + RespTime2 float32 + RespTime3 float32 + type TracerouteItem struct + ActualDuration int + CAddr string + CIa string + CmdOutput string + Error string + Inserted int64 + Path string + SAddr string + SIa string + Timeout float32 + func ReadTracerouteItemsAll() ([]TracerouteItem, error) + func (tr TracerouteItem) GetHeaders() []string + func (tr TracerouteItem) ToSlice() []string