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
}
func NewAuthService ¶
func NewAuthService(repo repository.Authorization) *AuthService
func (*AuthService) CreateUser ¶
func (s *AuthService) CreateUser(user domain.User) (int64, error)
func (*AuthService) GenerateToken ¶
func (s *AuthService) GenerateToken(email, password string) (int64, string, error)
func (*AuthService) GetUserName ¶
func (s *AuthService) GetUserName(id int64) (string, error)
func (*AuthService) ParseToken ¶
func (s *AuthService) ParseToken(accessToken string) (int64, error)
type Authorization ¶
type Service ¶
type Service struct {
Authorization
}
func NewService ¶
func NewService(repos *repository.Repository) *Service
Click to show internal directories.
Click to hide internal directories.