Documentation ¶
Index ¶
- type EntgoRepository
- func (r *EntgoRepository) CreateItem(i *domain.Item, t *domain.Task) (*domain.Item, error)
- func (r *EntgoRepository) CreateSystemSummary(s *domain.SystemSymmary) (*domain.SystemSymmary, error)
- func (r *EntgoRepository) CreateTask(t *domain.Task, u *domain.User, tt *domain.TaskType) (*domain.Task, error)
- func (r *EntgoRepository) CreateUser(u *domain.User) (*domain.User, error)
- func (r *EntgoRepository) GetItemCount() (int, error)
- func (r *EntgoRepository) GetLatestSystemSummary() (*domain.SystemSymmary, error)
- func (r *EntgoRepository) GetTaskByCode(code string) (*domain.Task, error)
- func (r *EntgoRepository) GetTaskCount(active bool) (int, error)
- func (r *EntgoRepository) GetTaskTypeByCode(code string) (*domain.TaskType, error)
- func (r *EntgoRepository) GetTasks(u *domain.User) ([]*domain.Task, error)
- func (r *EntgoRepository) GetTasksWithItems(u *domain.User, itemLimit int) ([]*domain.Task, error)
- func (r *EntgoRepository) GetUserByUsername(username string) (*domain.User, error)
- func (r *EntgoRepository) GetUserCount() (int, error)
- func (r *EntgoRepository) UpdateTask(t *domain.Task) (*domain.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntgoRepository ¶
type EntgoRepository struct {
// contains filtered or unexported fields
}
func NewEntgoRepository ¶
func NewEntgoRepository( client *ent.Client, logger *logger.Logger, ) *EntgoRepository
func (*EntgoRepository) CreateItem ¶
func (*EntgoRepository) CreateSystemSummary ¶
func (r *EntgoRepository) CreateSystemSummary(s *domain.SystemSymmary) (*domain.SystemSymmary, error)
func (*EntgoRepository) CreateTask ¶
func (*EntgoRepository) CreateUser ¶
func (*EntgoRepository) GetItemCount ¶
func (r *EntgoRepository) GetItemCount() (int, error)
func (*EntgoRepository) GetLatestSystemSummary ¶
func (r *EntgoRepository) GetLatestSystemSummary() (*domain.SystemSymmary, error)
func (*EntgoRepository) GetTaskByCode ¶
func (r *EntgoRepository) GetTaskByCode(code string) (*domain.Task, error)
func (*EntgoRepository) GetTaskCount ¶
func (r *EntgoRepository) GetTaskCount(active bool) (int, error)
func (*EntgoRepository) GetTaskTypeByCode ¶
func (r *EntgoRepository) GetTaskTypeByCode(code string) (*domain.TaskType, error)
func (*EntgoRepository) GetTasksWithItems ¶
func (*EntgoRepository) GetUserByUsername ¶
func (r *EntgoRepository) GetUserByUsername(username string) (*domain.User, error)
func (*EntgoRepository) GetUserCount ¶
func (r *EntgoRepository) GetUserCount() (int, error)
func (*EntgoRepository) UpdateTask ¶
Click to show internal directories.
Click to hide internal directories.