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.Authorization) *AuthService
NewAuthService - constructor
func (*AuthService) CreateAccount ¶
func (s *AuthService) CreateAccount(account models.Account) (int, error)
func (*AuthService) GenerateToken ¶
func (s *AuthService) GenerateToken(username, password string) (string, error)
GenerateToken - token generation
func (*AuthService) GetAccountById ¶
func (s *AuthService) GetAccountById(accountId int) (models.Account, error)
func (*AuthService) ParseToken ¶
func (s *AuthService) ParseToken(accessToken string) (int, error)
ParseToken - getting authorized data from token
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)
Click to show internal directories.
Click to hide internal directories.