Documentation ¶
Index ¶
- type TaskRepo
- func (p *TaskRepo) AddTask(task models.Task) (id string, err error)
- func (p *TaskRepo) AllTasks() (task []models.Task, err error)
- func (p *TaskRepo) Derive(session *isolator.Session) (obj isolator.Object, err error)
- func (p *TaskRepo) GetTaskByID(id string) (task models.Task, exist bool, err error)
- func (p *TaskRepo) GetUserTasks(userID string) (task []models.Task, err error)
- type TaskRepository
- type UserRepo
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskRepo ¶
type TaskRepo struct {
// contains filtered or unexported fields
}
func (*TaskRepo) GetTaskByID ¶
type TaskRepository ¶
type TaskRepository interface { isolator.Object AddTask(task models.Task) (id string, err error) GetTaskByID(id string) (task models.Task, exist bool, err error) GetUserTasks(userID string) (task []models.Task, err error) AllTasks() (task []models.Task, err error) }
func NewTaskRepo ¶
func NewTaskRepo() TaskRepository
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
type UserRepository ¶
type UserRepository interface { isolator.Object AddUser(user models.User) (err error) GetUser(id string) (user models.User, exist bool, err error) }
func NewUserRepo ¶
func NewUserRepo() UserRepository
Click to show internal directories.
Click to hide internal directories.