Documentation ¶
Index ¶
- type Service
- func (s *Service) CreateUser(ctx context.Context, username, password string) error
- func (s *Service) GenerateToken(ctx context.Context, username, password string) (string, error)
- func (s *Service) GetUser(ctx context.Context, username, password string) (*model.User, error)
- func (s *Service) ParseToken(accessToken string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo *repository.Repository) *Service
func (*Service) CreateUser ¶
func (*Service) GenerateToken ¶
Click to show internal directories.
Click to hide internal directories.