Documentation ¶
Index ¶
- type Database
- func (d *Database) GetIntervention(timestamp string) (models.Intervention, error)
- func (d *Database) GetInterventions() ([]models.Intervention, error)
- func (d *Database) GetInterventionsByDate(date string) ([]models.Intervention, error)
- func (d *Database) UpdateIntervention(timestamp string, intervention models.Intervention) error
- type SqliteInterventionRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
ConnectionString string
}
func NewDatabase ¶
func (*Database) GetIntervention ¶
func (d *Database) GetIntervention(timestamp string) (models.Intervention, error)
func (*Database) GetInterventions ¶
func (d *Database) GetInterventions() ([]models.Intervention, error)
func (*Database) GetInterventionsByDate ¶
func (d *Database) GetInterventionsByDate(date string) ([]models.Intervention, error)
func (*Database) UpdateIntervention ¶
func (d *Database) UpdateIntervention(timestamp string, intervention models.Intervention) error
type SqliteInterventionRepository ¶
type SqliteInterventionRepository struct {
ConnectionString string
}
func NewSqliteInterventionRepository ¶
func NewSqliteInterventionRepository(connectionString string) *SqliteInterventionRepository
func (*SqliteInterventionRepository) GetIntervention ¶
func (ir *SqliteInterventionRepository) GetIntervention(timestamp string) (models.Intervention, error)
func (*SqliteInterventionRepository) GetInterventions ¶
func (ir *SqliteInterventionRepository) GetInterventions() ([]models.Intervention, error)
func (*SqliteInterventionRepository) GetInterventionsByDate ¶
func (ir *SqliteInterventionRepository) GetInterventionsByDate(date string) ([]models.Intervention, error)
Click to show internal directories.
Click to hide internal directories.