Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database interfaces with the PostgreSQL database.
func NewDatabase ¶
func NewDatabase(cfg *config.DatabaseConfig) (d *Database, err error)
NewDatabase instantiates a new Database.
func (*Database) GetAllStats ¶
func (d *Database) GetAllStats() ([]*common.DailyStats, error)
GetAllStats retrieves all the stats stored in the database.
func (*Database) GetKnownFileNames ¶
GetKnownFileNames retrieves the names of the daily data files that already exist in the database.
func (*Database) StoreStats ¶
func (d *Database) StoreStats(stats *common.DailyStats) error
StoreStats stores the provided stats into the database.
Click to show internal directories.
Click to hide internal directories.