Documentation ¶
Index ¶
- Variables
- func CheckErr(err error, msg string)
- func InitDb(dbname string) *modl.DbMap
- func ResetDatabase()
- type Project
- type ProjectDomain
- type ProjectManager
- func (m *ProjectManager) Add(model interface{}) error
- func (m *ProjectManager) Find(id int, dest interface{}) (err error)
- func (tm *ProjectManager) FindAll() (projects []Project, err error)
- func (pm *ProjectManager) FindAllWithTasks() (projects []ProjectDomain, err error)
- func (m *ProjectManager) Update(dest interface{}) (err error)
- type Task
- type TaskDomain
- type TaskManager
- func (m *TaskManager) Add(model interface{}) error
- func (m *TaskManager) Find(id int, dest interface{}) (err error)
- func (tm *TaskManager) FindAll() (tasks []Task, err error)
- func (tm *TaskManager) FindTasksOfProject(projectId int, tasks *[]Task) (err error)
- func (m *TaskManager) Update(dest interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Dbmap *modl.DbMap
Functions ¶
func ResetDatabase ¶
func ResetDatabase()
Types ¶
type Project ¶
func NewProject ¶
type ProjectDomain ¶
func NewProjectDomain ¶
func NewProjectDomain(name string) ProjectDomain
type ProjectManager ¶
type ProjectManager struct {
// contains filtered or unexported fields
}
func NewProjectManager ¶
func NewProjectManager() *ProjectManager
func (*ProjectManager) FindAll ¶
func (tm *ProjectManager) FindAll() (projects []Project, err error)
func (*ProjectManager) FindAllWithTasks ¶
func (pm *ProjectManager) FindAllWithTasks() (projects []ProjectDomain, err error)
type TaskDomain ¶
type TaskManager ¶
type TaskManager struct {
// contains filtered or unexported fields
}
func NewTaskManager ¶
func NewTaskManager() *TaskManager
func (*TaskManager) FindAll ¶
func (tm *TaskManager) FindAll() (tasks []Task, err error)
func (*TaskManager) FindTasksOfProject ¶
func (tm *TaskManager) FindTasksOfProject(projectId int, tasks *[]Task) (err error)
Click to show internal directories.
Click to hide internal directories.