# Packages
No description provided by the author
# Functions
CloseDB will close the database, only use when app closes.
DeleteBwTestItemsBefore operates on the DB to remote all bwtests rows which are more older than the 'before' epoch in ms.
DeleteEchoItemsBefore operates on the DB to remote all echo rows which are more older than the 'before' epoch in ms.
DeleteTracerouteItemsBefore operates on the DB to remote all traceroute rows which are more older than the 'before' epoch in ms.
DeleteTrHopItemsBefore operates on the DB to remote all trhops rows which are more older than the 'before' epoch in ms.
InitDB controls the opening connection to the database.
LoadDB operates on the DB to load and/or migrate the database.
MaintainDatabase is a goroutine that runs independanly to cleanup the database according to the defined schedule.
ReadBwTestItemsAll operates on the DB to return all bwtests rows.
ReadBwTestItemsSince operates on the DB to return all bwtests rows which are more recent than the 'since' epoch in ms.
ReadEchoItemsAll operates on the DB to return all echo rows.
ReadEchoItemsSince operates on the DB to return all echo rows which are more recent than the 'since' epoch in ms.
ReadTracerouteItemsAll operates on the DB to return all traceroute rows.
ReadTracerouteItemsSince operates on the DB to return all rows in traceroute join trhops which are more recent than the 'since' epoch in ms.
StoreBwTestItem operates on the DB to insert a BwTestItem.
StoreEchoItem operates on the DB to insert a EchoItem.
StoreTracerouteItem operates on the DB to insert a TracerouteItem.
StoreTrHopItem operates on the DB to insert a TrHopItem.
# Structs
BwTestGraph reflects one row in the bwtests table with only the necessary items to display in a graph.
BwTestItem reflects one row in the bwtests table with all columns.
EchoGraph reflects one row in the echo table with only the necessary items to display in a graph.
EchoItem reflects one row in the echo table with all columns.
Store only part of the TrHopItem information used for display in the graph.
parse the result SQL query first in TracerouteHelper structs and then convert them into TracerouteGraph in order to avoid redundancy.
TracerouteHelper reflects one row in the Traceroute table joint with Hop table with only the necessary items to display in a graph.
TracerouteItem reflects one row in the Traceroute table with all columns.
TrHopItem reflects one row in the Hop table with all columns.
# Interfaces
CmdItem could be either EchoItem or BwTestItem.