Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
func NewService ¶
func NewService(conf config.Config, repos *repository.Repository) *Service
type URLService ¶
type URLService struct {
// contains filtered or unexported fields
}
func NewURLService ¶
func NewURLService(conf config.Config, repo *repository.Repository) *URLService
func (*URLService) CreateShortURL ¶
func (s *URLService) CreateShortURL(url domain.URL) string
func (*URLService) GetURLByHash ¶
func (s *URLService) GetURLByHash(hash string) (domain.URL, error)
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(repo *repository.Repository) *UserService
func (*UserService) GenerateToken ¶
func (s *UserService) GenerateToken(username, password string) (string, error)
func (*UserService) ParseToken ¶
func (s *UserService) ParseToken(accessToken string) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.