Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Datastore ¶
type Datastore interface { Create(entity *models.ProblemReport) (*models.ProblemReport, error) GetAll() ([]models.ProblemReport, error) GetAllByPeriod(startDate time.Time, endDate time.Time) ([]models.ProblemReport, error) GetCategories() ([]models.ProblemReportCategory, error) }
func ConnectToDB ¶
ConnectToDB extracts connection information from environment variables and initiates a connection to the database.
Click to show internal directories.
Click to hide internal directories.