Versions in this module Expand all Collapse all v1 v1.2.2 Mar 12, 2021 v1.2.1 Jan 12, 2021 v1.2.0 Aug 1, 2017 v1.0.1 Jul 30, 2017 Changes in this version + func GetEventSql() string + func GetSiteSql() string + type Event struct + Author string + Id int + Published string + Summary string + Title string + Url string + func (e Event) Host() string + func (e Event) String() string + type NotFound string + func (e NotFound) Error() string + type Site struct + Id int + Name string + Url string + func (rr Site) String() string + type TDB struct + func InitDB(appDir string) (*TDB, error) + func (tdb *TDB) AddEvent(e Event) error + func (tdb *TDB) AddSite(rr Site) error + func (tdb *TDB) CreateTables() error + func (tdb *TDB) DeleteEvent(id int) error + func (tdb *TDB) DeleteSite(id int) error + func (tdb *TDB) DropTables() error + func (tdb *TDB) GetEventById(id int) (Event, error) + func (tdb *TDB) GetEvents() ([]Event, error) + func (tdb *TDB) GetSiteById(id int) (Site, error) + func (tdb *TDB) GetSiteByUrl(url string) (Site, error) + func (tdb *TDB) GetSites() ([]Site, error)