Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
AuthService - service
func NewAuthService ¶
func NewAuthService(repo repository.Authorizer) *AuthService
NewAuthService - constructor
func (*AuthService) GetAccount ¶
func (s *AuthService) GetAccount(token string) (models.Account, error)
func (*AuthService) GetAccountById ¶
func (*AuthService) ParseToken ¶
func (s *AuthService) ParseToken(accessToken string) (int, error)
type Authorizer ¶
type TaskService ¶
type TaskService struct {
// contains filtered or unexported fields
}
TaskService - service
func NewTaskService ¶
func NewTaskService(repo repository.Tasker) *TaskService
NewTaskService - constructor
func (*TaskService) CreateTask ¶
func (s *TaskService) CreateTask(task models.Task) (int, error)
func (*TaskService) GetAllTasksByAssignedAccountId ¶
func (s *TaskService) GetAllTasksByAssignedAccountId(assignedAccountId int) ([]models.Task, error)
func (*TaskService) GetTaskById ¶
func (s *TaskService) GetTaskById(taskId int) (models.Task, error)
Click to show internal directories.
Click to hide internal directories.