Documentation ¶
Overview ¶
Package model sets up the database and defines functions that interact with the db
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteRecord ¶
func DeleteRecord(value string, recordType RecordType)
Delete records associated with a site
func SetupDB ¶
SetupDb creates a connection to the db and initializes the table and columns Returns a possible error
func UpdateRecord ¶ added in v0.9.0
func UpdateRecord(recordType RecordType)
Updates the contents of a specified site
Types ¶
type Site ¶
Site defines the structure of the db
func SearchRecords ¶
func SearchRecords(value string, searchBy RecordType) ([]Site, error)
Returns records matching the users prompt(the site name)
Click to show internal directories.
Click to hide internal directories.