Documentation
¶
Index ¶
- func Clear(table string)
- func Connect()
- func Delete(table string, id int)
- func DeleteOldHistory(date string) int64
- func Select(table string) (dbHosts []models.Host, ok bool)
- func SelectByDate(mac, date string) (hosts []models.Host)
- func SelectByID(id int) (host models.Host)
- func SelectByMAC(mac string) (hosts []models.Host)
- func SelectLatest(mac string, number int) (hosts []models.Host)
- func Start()
- func Update(table string, oneHost models.Host)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteOldHistory ¶
DeleteOldHistory - delete a list of hosts from History
func SelectByDate ¶
SelectByDate - get all hosts by MAC and DATE
func SelectByMAC ¶
SelectByMAC - get all hosts by MAC
func SelectLatest ¶
SelectLatest - get latest hosts by MAC
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.