Documentation ¶
Index ¶
- Constants
- func Open(url string) (*sqlx.DB, error)
- func RunMigrations(con *sqlx.DB) error
- type DateTime
- type Project
- type ProjectStore
- func (s *ProjectStore) Delete(id string) error
- func (s *ProjectStore) DeleteByName(name string) error
- func (s *ProjectStore) Get(id string) (*Project, error)
- func (s *ProjectStore) GetAll() ([]*Project, error)
- func (s *ProjectStore) Insert(project *Project) error
- func (s *ProjectStore) Save(project *Project) error
- func (s *ProjectStore) Update(project *Project) error
- type Status
- type Task
- type TaskStatus
- type TaskStore
- func (s *TaskStore) Delete(id string) error
- func (s *TaskStore) Get(id string) (*Task, error)
- func (s *TaskStore) GetAll() ([]*Task, error)
- func (s *TaskStore) GetAllByProjectId(projectId string) ([]*Task, error)
- func (s *TaskStore) GetAllByProjectName(projectName string) ([]*Task, error)
- func (s *TaskStore) Insert(task *Task) error
- func (s *TaskStore) Save(task *Task) error
- func (s *TaskStore) Update(task *Task) error
Constants ¶
View Source
const ( StatusActive Status = "active" StatusPaused = "paused" StatusCompleted = "completed" )
View Source
const ( TaskStatusTodo TaskStatus = "todo" TaskStatusInProgress = "inProgress" TaskStatusCompleted = "completed" )
Variables ¶
This section is empty.
Functions ¶
func RunMigrations ¶
Types ¶
type Project ¶
func NewProject ¶
func NewProject() *Project
type ProjectStore ¶
type ProjectStore struct {
// contains filtered or unexported fields
}
func NewProjectStore ¶
func NewProjectStore(con *sqlx.DB) *ProjectStore
func (*ProjectStore) Delete ¶
func (s *ProjectStore) Delete(id string) error
func (*ProjectStore) DeleteByName ¶
func (s *ProjectStore) DeleteByName(name string) error
func (*ProjectStore) GetAll ¶
func (s *ProjectStore) GetAll() ([]*Project, error)
func (*ProjectStore) Insert ¶
func (s *ProjectStore) Insert(project *Project) error
func (*ProjectStore) Save ¶
func (s *ProjectStore) Save(project *Project) error
func (*ProjectStore) Update ¶
func (s *ProjectStore) Update(project *Project) error
type Task ¶
type TaskStatus ¶
type TaskStatus string
type TaskStore ¶
type TaskStore struct {
// contains filtered or unexported fields
}
func NewTaskStore ¶
func (*TaskStore) GetAllByProjectId ¶
func (*TaskStore) GetAllByProjectName ¶
Click to show internal directories.
Click to hide internal directories.