db

package
v0.0.0-...-d789378 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(path string)

Clear - delete all hosts from table

func ClearHist

func ClearHist(path string)

ClearHist - delete all history from table

func Create

func Create(path string)

Create - create DB if not exists

func Delete

func Delete(path string, id int)

Delete - delete host from DB

func DeleteHist

func DeleteHist(path string, id int)

DeleteHist - delete history from DB

func Insert

func Insert(path string, oneHost models.Host)

Insert - insert host into table

func InsertHist

func InsertHist(path string, hist models.History)

InsertHist - insert history into table

func Select

func Select(path string) (dbHosts []models.Host)

Select - select all hosts

func SelectHist

func SelectHist(path string) (hist []models.History)

SelectHist - select all history

func Update

func Update(path string, oneHost models.Host)

Update - update host

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL