Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DbUser string
DbPassword string
DbName string
DbHost string
DbPort string
DbType string
}
Config - configuration for the db package
type Database ¶
type Database interface {
RebuildDb(cfg Config) error
CreateTable(cfg Config) error
GetAllTasks(cfg Config) ([]model.Task, error)
AddTask(cfg Config, task model.Task) (model.Task, error)
DeleteTask(cfg Config, task model.Task) error
}
func GetDatabase ¶
type Pqdb ¶
type Pqdb struct {
}
func (Pqdb) CreateTable ¶
func (Pqdb) GetAllTasks ¶
GetAllTasks lists all tasks in the database
Click to show internal directories.
Click to hide internal directories.